diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2024-04-05 13:18:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-08 11:56:56 +0100 |
commit | a29689e60ed3e65463d6462390caad669d08a6b7 (patch) | |
tree | 1bdcf36dc7d8831bf834ceab14b2fe7a7c51db7d /drivers/net/fddi | |
parent | 6e51d9144a941678ee8d39753e78cd018d5c063f (diff) | |
download | linux-a29689e60ed3e65463d6462390caad669d08a6b7.tar.gz linux-a29689e60ed3e65463d6462390caad669d08a6b7.tar.bz2 linux-a29689e60ed3e65463d6462390caad669d08a6b7.zip |
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: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Maciej W. Rozycki <macro@orcam.me.uk>
Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi')
-rw-r--r-- | drivers/net/fddi/defxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fddi/defxx.c b/drivers/net/fddi/defxx.c index 1fef8a9b1a0f..0fbbb7286008 100644 --- a/drivers/net/fddi/defxx.c +++ b/drivers/net/fddi/defxx.c @@ -254,7 +254,7 @@ static const char version[] = #define DFX_BUS_TC(dev) 0 #endif -#if defined(CONFIG_EISA) || defined(CONFIG_PCI) +#ifdef CONFIG_HAS_IOPORT #define dfx_use_mmio bp->mmio #else #define dfx_use_mmio true |