Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1238261 authored by Mark Rutland's avatar Mark Rutland Committed by David S. Miller
Browse files

net: smsc911x: don't artificially limit build



Currently the SMSC911X driver may only be built for a specific set of
architectures, being limited to do so by a Kconfig depends line. This
means that if a platform wishes to use the driver, its architecture must
be added to the list explicitly, introducing pointless churn.

This may have been due to the driver's use of the {read,write}s{b,w,l}
functions, which have since been replaced with the more standard
io{read,write}{8,16,32}_rep. We can instead depend on HAS_IOMEM, which
should prevent build issues while allowing the driver to be built for
currently unlisted architectures, including x86 and arm64.

This patch removes the explicit list of architectures from the driver's
depend line, and replaces it with a dependency on HAS_IOMEM.

Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1cdbcb79
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -97,7 +97,7 @@ config SMC911X


config SMSC911X
config SMSC911X
	tristate "SMSC LAN911x/LAN921x families embedded ethernet support"
	tristate "SMSC LAN911x/LAN921x families embedded ethernet support"
	depends on (ARM || SUPERH || BLACKFIN || MIPS || MN10300)
	depends on HAS_IOMEM
	select CRC32
	select CRC32
	select NET_CORE
	select NET_CORE
	select MII
	select MII