wifi: add HAS_IOPORT dependencies
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 22 May 2023 10:50:48 +0000 (12:50 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:08:30 +0000 (19:08 +0300)
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. We thus need to add HAS_IOPORT as dependency for
those drivers using them.

Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Acked-by: Kalle Valo <kvalo@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230522105049.1467313-44-schnelle@linux.ibm.com
drivers/net/wireless/atmel/Kconfig
drivers/net/wireless/intersil/hostap/Kconfig

index ca45a10..bafdd57 100644 (file)
@@ -14,7 +14,7 @@ if WLAN_VENDOR_ATMEL
 
 config ATMEL
        tristate "Atmel at76c50x chipset  802.11b support"
-       depends on CFG80211 && (PCI || PCMCIA)
+       depends on CFG80211 && (PCI || PCMCIA) && HAS_IOPORT
        select WIRELESS_EXT
        select WEXT_PRIV
        select FW_LOADER
index c865d31..2edff8e 100644 (file)
@@ -56,7 +56,7 @@ config HOSTAP_FIRMWARE_NVRAM
 
 config HOSTAP_PLX
        tristate "Host AP driver for Prism2/2.5/3 in PLX9052 PCI adaptors"
-       depends on PCI && HOSTAP
+       depends on PCI && HOSTAP && HAS_IOPORT
        help
        Host AP driver's version for Prism2/2.5/3 PC Cards in PLX9052 based
        PCI adaptors.