qlge: Fix build error without CONFIG_ETHERNET
authorYueHaibing <yuehaibing@huawei.com>
Wed, 24 Jul 2019 13:01:26 +0000 (21:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 21:12:40 +0000 (14:12 -0700)
commit2ec0a8909189cb801ded3428d66cdc1ea7e4578b
tree0d31d54491432447485c8a3bc54bbbc6e5409938
parented72a9bb9af06c9eb06ff2e8640faac44f8da94a
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>
drivers/staging/qlge/Kconfig