summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/sja1105/Makefile
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-06-26 02:39:33 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-27 11:03:21 -0700
commit3d64ea387cc3ba884f9d2b5c41a8625d48deb933 (patch)
treef619e80b1a84d641fe3ee5c152847de3458c5b55 /drivers/net/dsa/sja1105/Makefile
parentc881e10e3f47df8a403c23589f204816bfb2a41d (diff)
net: dsa: sja1105: Build PTP support in main DSA driver
As Arnd Bergmann pointed out in commit 78fe8a28fb96 ("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>
Diffstat (limited to 'drivers/net/dsa/sja1105/Makefile')
-rw-r--r--drivers/net/dsa/sja1105/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/sja1105/Makefile b/drivers/net/dsa/sja1105/Makefile
index 9a22f68b39e9..4483113e6259 100644
--- a/drivers/net/dsa/sja1105/Makefile
+++ b/drivers/net/dsa/sja1105/Makefile
@@ -10,5 +10,5 @@ sja1105-objs := \
sja1105_dynamic_config.o \
ifdef CONFIG_NET_DSA_SJA1105_PTP
-obj-$(CONFIG_NET_DSA_SJA1105) += sja1105_ptp.o
+sja1105-objs += sja1105_ptp.o
endif