summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx/Makefile
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-09-02 14:45:34 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-06 12:58:14 -0700
commitca070c1097eb647e87619af5037d8a8a53a3248b (patch)
tree5898c37778b7d7075c9c84d194d9b30478d4ce3c /drivers/net/dsa/mv88e6xxx/Makefile
parentec5612761c47ec7ab91b61df1bbcfd65cb0dbec8 (diff)
downloadlinux-stable-ca070c1097eb647e87619af5037d8a8a53a3248b.tar.gz
linux-stable-ca070c1097eb647e87619af5037d8a8a53a3248b.tar.bz2
linux-stable-ca070c1097eb647e87619af5037d8a8a53a3248b.zip
net: dsa: mv88e6xxx: make global2 code optional
Since not every chip has a Global2 set of registers, make its support optional, in which case the related functions will return -EOPNOTSUPP. This also allows to reduce the size of the mv88e6xxx driver for devices such as home routers embedding Ethernet chips without Global2 support. It is present on most recent chips, thus enable its support by default. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/Makefile')
-rw-r--r--drivers/net/dsa/mv88e6xxx/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/Makefile b/drivers/net/dsa/mv88e6xxx/Makefile
index 5a4206652e92..697103934317 100644
--- a/drivers/net/dsa/mv88e6xxx/Makefile
+++ b/drivers/net/dsa/mv88e6xxx/Makefile
@@ -1,3 +1,3 @@
obj-$(CONFIG_NET_DSA_MV88E6XXX) += mv88e6xxx.o
mv88e6xxx-objs := chip.o
-mv88e6xxx-objs += global2.o
+mv88e6xxx-$(CONFIG_NET_DSA_MV88E6XXX_GLOBAL2) += global2.o