summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-01-31 04:17:16 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-31 19:36:59 +0100
commit953046e1af0f188ffe7061ee05160318e7f9d0dd (patch)
treea32850d81bbbd65e00594ea29abe90511b69f6cd /drivers/net/dsa/Makefile
parentcxgb4: update latest firmware version supported (diff)
downloadlinux-953046e1af0f188ffe7061ee05160318e7f9d0dd.tar.xz
linux-953046e1af0f188ffe7061ee05160318e7f9d0dd.zip
net: dsa: bcm_sf2: Fix build module
Commit 7318166cacad ("net: dsa: bcm_sf2: Add support for ethtool::rxnfc") added a new object to build: bcm_sf2_cfp.o, but in doing so, we essentially just built this object and no longer bcm_sf2.o. Fix this by creating a module named bcm-sf2.ko which links in bcm_sf2.o and bcm_sf2_cfp.o. Fixes: 7318166cacad ("net: dsa: bcm_sf2: Add support for ethtool::rxnfc") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/Makefile')
-rw-r--r--drivers/net/dsa/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dsa/Makefile b/drivers/net/dsa/Makefile
index da9893478e21..a3c941632217 100644
--- a/drivers/net/dsa/Makefile
+++ b/drivers/net/dsa/Makefile
@@ -1,6 +1,6 @@
obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o
-obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm_sf2.o
-bcm_sf2-objs += bcm_sf2_cfp.o
+obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm-sf2.o
+bcm-sf2-objs := bcm_sf2.o bcm_sf2_cfp.o
obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o
obj-y += b53/