1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/micrel
Arnd Bergmann 51bb08dd04 net: ks8851: fix link error
An object file cannot be built for both loadable module and built-in
use at the same time:

arm-linux-gnueabi-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common':
ks8851_common.c:(.text+0xf80): undefined reference to `__this_module'

Change the ks8851_common code to be a standalone module instead,
and use Makefile logic to ensure this is built-in if at least one
of its two users is.

Fixes: 797047f875 ("net: ks8851: Implement Parallel bus operations")
Link: https://lore.kernel.org/netdev/20210125121937.3900988-1-arnd@kernel.org/
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-28 13:11:20 +01:00
..
Kconfig net: ks8851: Select PHYLIB and MICREL_PHY in Kconfig 2021-01-12 18:42:36 -08:00
ks8842.c net: micrel: check return value after calling platform_get_resource() 2021-06-07 14:07:22 -07:00
ks8851.h net: ks8851: Register MDIO bus and the internal PHY 2021-01-05 17:05:11 -08:00
ks8851_common.c net: ks8851: fix link error 2021-09-28 13:11:20 +01:00
ks8851_par.c net: ks8851: remove definition of DEBUG 2021-01-15 17:53:29 -08:00
ks8851_spi.c net: ks8851: remove definition of DEBUG 2021-01-15 17:53:29 -08:00
ksz884x.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
Makefile net: ks8851: fix link error 2021-09-28 13:11:20 +01:00