]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Build PTP support in main DSA driver
authorVladimir Oltean <olteanv@gmail.com>
Tue, 25 Jun 2019 23:39:33 +0000 (02:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:03:21 +0000 (11:03 -0700)
commitcade128543811330c3842e1a99d9841d53cd25b9
treef619e80b1a84d641fe3ee5c152847de3458c5b55
parent58cb274c8ac6c259e0031f84d68b3a53ffe5e443
net: dsa: sja1105: Build PTP support in main DSA driver

As Arnd Bergmann pointed out in commit bd598d6d9f87 ("net: dsa: sja1105:
fix ptp link error"), there is no point in having PTP support as a
separate loadable kernel module.

So remove the exported symbols and make sja1105.ko contain PTP support
or not based on CONFIG_NET_DSA_SJA1105_PTP.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/Makefile
drivers/net/dsa/sja1105/sja1105_ptp.c
drivers/net/dsa/sja1105/sja1105_spi.c
drivers/net/dsa/sja1105/sja1105_static_config.c