]> git.baikalelectronics.ru Git - kernel.git/commit
cs89x0: rework driver configuration
authorArnd Bergmann <arnd@arndb.de>
Tue, 3 Aug 2021 11:40:42 +0000 (13:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2021 12:05:25 +0000 (13:05 +0100)
commit6dff33708e784419d07ff5e61b643f90948cbfb6
treee0b54866262d4b1d26a4ba957f349c6be5daada9
parent8d383bc983063472a4d5f63d4e79a3d3906de572
cs89x0: rework driver configuration

There are two drivers in the cs89x0 file, with the CONFIG_CS89x0_PLATFORM
symbol deciding which one is getting built. This is somewhat confusing
and makes it more likely ton configure a driver that works nowhere.

Split up the Kconfig option into separate ISA and PLATFORM drivers,
with the ISA symbol explicitly connecting to the static probing in
drivers/net/Space.c

The two drivers are still mutually incompatible at compile time,
which could be lifted by splitting them into multiple files,
but in practice this will make no difference.

The platform driver can now be enabled for compile-testing on
non-ARM machines.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Space.c
drivers/net/ethernet/cirrus/Kconfig
drivers/net/ethernet/cirrus/cs89x0.c