linux/drivers/net/ethernet/smsc
Arnd Bergmann 15added6a5 net: smc91x: improve neponset hack
The smc91x driver tries to support multiple platforms at compile
time, but they are mutually exclusive at runtime, and not clearly
defined.

Trying to build for CONFIG_SA1100_ASSABET without CONFIG_ASSABET_NEPONSET
results in this link error:

drivers/built-in.o: In function `smc_drv_probe':
:(.text+0x33310c): undefined reference to `neponset_ncr_frob'

since the neponset_ncr_set function is not defined otherwise.

Similarly, building for both CONFIG_SA1100_ASSABET and CONFIG_SA1100_PLEB
results in a different build error:

smsc/smc91x.c: In function 'smc_drv_probe':
smsc/smc91x.c:2299:2: error: implicit declaration of function 'neponset_ncr_set' [-Werror=implicit-function-declaration]
  neponset_ncr_set(NCR_ENET_OSC_EN);
  ^
smsc/smc91x.c:2299:19: error: 'NCR_ENET_OSC_EN' undeclared (first use in this function)
  neponset_ncr_set(NCR_ENET_OSC_EN);
                   ^

This is an attempt to fix the call site responsible for both
errors, making sure we call the function exactly when the driver
is actually trying to run on the assabet/neponset machine. With
this patch, I no longer see randconfig build errors in this file.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-20 16:23:27 -05:00
..
epic100.c
Kconfig net: smc91x: Add Atari EtherNAT support 2015-01-15 19:32:58 -05:00
Makefile
smc91c92_cs.c
smc91x.c net: smc91x: improve neponset hack 2015-02-20 16:23:27 -05:00
smc91x.h net: smc91x: Add Atari EtherNAT support 2015-01-15 19:32:58 -05:00
smc911x.c
smc911x.h
smc9194.c
smc9194.h
smsc911x.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
smsc911x.h
smsc9420.c
smsc9420.h