linux/drivers/net/ethernet/8390
Arnd Bergmann d7e203ffd3 ne2000: fix unused function warning
Geert noticed a warning on MIPS TX49xx, Atari and presuambly other
platforms when the driver is built-in but NETDEV_LEGACY_INIT is
disabled:

drivers/net/ethernet/8390/ne.c:909:20: warning: ‘ne_add_devices’ defined but not used [-Wunused-function]

Merge the two module init functions into a single one with an
IS_ENABLED() check to replace the incorrect #ifdef.

Fixes: 4228c39428 ("make legacy ISA probe optional")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-08 11:45:06 +01:00
..
8390.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
8390.h 8390: Fix coding-style issues 2020-06-28 21:44:49 -07:00
8390p.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
apne.c m68k: remove legacy probing 2021-08-03 13:05:25 +01:00
ax88796.c ax88796: export ax_NS8390_init() hook 2021-08-03 13:05:25 +01:00
axnet_cs.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
etherh.c
hydra.c
Kconfig make legacy ISA probe optional 2021-08-03 13:05:26 +01:00
lib8390.c lib8390: Use netif_msg_init to initialize msg_enable bits 2020-10-01 19:08:46 -07:00
mac8390.c nubus: Make struct nubus_driver::remove return void 2021-07-28 15:33:59 +02:00
Makefile
mcf8390.c
ne2k-pci.c ne2k: Fix Typo in RW-Bugfix 2020-10-31 16:17:02 -07:00
ne.c ne2000: fix unused function warning 2021-09-08 11:45:06 +01:00
pcnet_cs.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
smc-ultra.c ethernet: isa: convert to module_init/module_exit 2021-08-03 13:05:26 +01:00
stnic.c net: 8390: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
wd.c ethernet: isa: convert to module_init/module_exit 2021-08-03 13:05:26 +01:00
xsurf100.c xsurf100: drop include of lib8390.c 2021-08-03 13:05:26 +01:00
zorro8390.c