mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 03:55:09 +08:00
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: d156576362
("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>
This commit is contained in:
parent
92c43fcafe
commit
00fb3a7c7c
@ -184,6 +184,7 @@ config BGMAC_PLATFORM
|
||||
config SYSTEMPORT
|
||||
tristate "Broadcom SYSTEMPORT internal MAC support"
|
||||
depends on OF
|
||||
depends on NET_DSA || !NET_DSA
|
||||
select MII
|
||||
select PHYLIB
|
||||
select FIXED_PHY
|
||||
|
Loading…
Reference in New Issue
Block a user