diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-09-07 15:46:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-08 11:45:06 +0100 |
commit | d7e203ffd3ba5965e88952e7364a42ab32064408 (patch) | |
tree | 029de8b2b50260f903f19a839a464bce0dc7a8fd /drivers/macintosh/windfarm_fcu_controls.c | |
parent | c324f023dbb2bcceccb7ecad5a268e58b80e638d (diff) | |
download | linux-d7e203ffd3ba5965e88952e7364a42ab32064408.tar.gz |
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: 4228c3942821 ("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>
Diffstat (limited to 'drivers/macintosh/windfarm_fcu_controls.c')
0 files changed, 0 insertions, 0 deletions