aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/qlge
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-07-24 21:01:26 +0800
committerDavid S. Miller <davem@davemloft.net>2019-07-24 14:12:40 -0700
commit2ec0a8909189cb801ded3428d66cdc1ea7e4578b (patch)
tree0d31d54491432447485c8a3bc54bbbc6e5409938 /drivers/staging/qlge
parentr8169: fix a typo in a comment (diff)
downloadlinux-dev-2ec0a8909189cb801ded3428d66cdc1ea7e4578b.tar.xz
linux-dev-2ec0a8909189cb801ded3428d66cdc1ea7e4578b.zip
qlge: Fix build error without CONFIG_ETHERNET
Now if CONFIG_ETHERNET is not set, QLGE driver building fails: drivers/staging/qlge/qlge_main.o: In function `qlge_remove': drivers/staging/qlge/qlge_main.c:4831: undefined reference to `unregister_netdev' Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 955315b0dc8c ("qlge: Move drivers/net/ethernet/qlogic/qlge/ to drivers/staging/qlge/") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/staging/qlge')
-rw-r--r--drivers/staging/qlge/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/qlge/Kconfig b/drivers/staging/qlge/Kconfig
index ae9ed2c5300b..a3cb25a3ab80 100644
--- a/drivers/staging/qlge/Kconfig
+++ b/drivers/staging/qlge/Kconfig
@@ -2,7 +2,7 @@
config QLGE
tristate "QLogic QLGE 10Gb Ethernet Driver Support"
- depends on PCI
+ depends on ETHERNET && PCI
help
This driver supports QLogic ISP8XXX 10Gb Ethernet cards.