net: systemport: add NET_DSA dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Oct 2017 11:32:36 +0000 (13:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 20:21:05 +0000 (21:21 +0100)
commit00fb3a7c7c14dd28feb0372a8458267e058add66
treefb3748c8e64ae1911a8e0226428a0e7823c2b9b8
parent92c43fcafe9db18dc51cd2a44cdafd80a4bcb2b5
net: systemport: add NET_DSA dependency

The notifier cause a link error when NET_DSA is a loadable
module:

drivers/net/ethernet/broadcom/bcmsysport.o: In function `bcm_sysport_remove':
bcmsysport.c:(.text+0x1582): undefined reference to `unregister_dsa_notifier'
drivers/net/ethernet/broadcom/bcmsysport.o: In function `bcm_sysport_probe':
bcmsysport.c:(.text+0x278d): undefined reference to `register_dsa_notifier'

This adds a dependency that forces the systemport driver to be
a loadable module as well when that happens, but otherwise
allows it to be built normally when DSA is either built-in or
completely disabled.

Fixes: d156576362c0 ("net: systemport: Establish lower/upper queue mapping")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/Kconfig