Commit a29689e6 authored by Niklas Schnelle's avatar Niklas Schnelle Committed by David S. Miller
Browse files

net: handle HAS_IOPORT dependencies



In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
compile time. We thus need to add HAS_IOPORT as dependency for
those drivers requiring them. For the DEFXX driver the use of I/O
ports is optional and we only need to fence specific code paths. It also
turns out that with HAS_IOPORT handled explicitly HAMRADIO does not need
the !S390 dependency and successfully builds the bpqether driver.

Acked-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
Acked-by: default avatarMaciej W. Rozycki <macro@orcam.me.uk>
Co-developed-by: default avatarArnd Bergmann <arnd@kernel.org>
Signed-off-by: default avatarArnd Bergmann <arnd@kernel.org>
Signed-off-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e51d914
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -520,7 +520,7 @@ source "drivers/net/ipa/Kconfig"

config NET_SB1000
	tristate "General Instruments Surfboard 1000"
	depends on PNP
	depends on ISA && PNP
	help
	  This is a driver for the General Instrument (also known as
	  NextLevel) SURFboard 1000 internal
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
#

menuconfig ARCNET
	depends on NETDEVICES && (ISA || PCI || PCMCIA)
	depends on NETDEVICES && (ISA || PCI || PCMCIA) && HAS_IOPORT
	tristate "ARCnet support"
	help
	  If you have a network card of this type, say Y and check out the
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ if CAN_CC770

config CAN_CC770_ISA
	tristate "ISA Bus based legacy CC770 driver"
	depends on ISA
	help
	  This driver adds legacy support for CC770 and AN82527 chips
	  connected to the ISA bus using I/O port, memory mapped or
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ config CAN_PLX_PCI

config CAN_SJA1000_ISA
	tristate "ISA Bus based legacy SJA1000 driver"
	depends on ISA
	help
	  This driver adds legacy support for SJA1000 chips connected to
	  the ISA bus using I/O port, memory mapped or indirect access.
+2 −2
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ config 3C515

config PCMCIA_3C574
	tristate "3Com 3c574 PCMCIA support"
	depends on PCMCIA
	depends on PCMCIA && HAS_IOPORT
	help
	  Say Y here if you intend to attach a 3Com 3c574 or compatible PCMCIA
	  (PC-card) Fast Ethernet card to your computer.
@@ -54,7 +54,7 @@ config PCMCIA_3C574

config PCMCIA_3C589
	tristate "3Com 3c589 PCMCIA support"
	depends on PCMCIA
	depends on PCMCIA && HAS_IOPORT
	help
	  Say Y here if you intend to attach a 3Com 3c589 or compatible PCMCIA
	  (PC-card) Ethernet card to your computer.
Loading