]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: gpib: fix pcmcia dependencies
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Dec 2024 06:49:49 +0000 (07:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2024 15:44:15 +0000 (16:44 +0100)
With CONFIG_PCMCIA=m, the gpib drivers that optionally support PCMCIA
cannot be built-in.

Add a Kconfig dependency to force these to be loadable modules as
well, and change the GPIB_PCMCIA symbol to have the correct state
for that.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241213064959.1045243-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/Kconfig

index 259f3ff3364676774398459c1de78f9e886b3558..275dbc32b28d4ff668429b9f67253872fd78c59f 100644 (file)
@@ -65,6 +65,7 @@ config GPIB_NI_PCI_ISA
        depends on ISA_BUS || PCI || PCMCIA
        depends on HAS_IOPORT
        depends on !X86_PAE
+       depends on PCMCIA || !PCMCIA
        select GPIB_COMMON
        select GPIB_NEC7210
        help
@@ -89,6 +90,7 @@ config GPIB_CB7210
        depends on HAS_IOPORT
        depends on ISA_BUS || PCI || PCMCIA
        depends on !X86_PAE
+       depends on PCMCIA || !PCMCIA
        select GPIB_COMMON
        select GPIB_NEC7210
        help
@@ -177,6 +179,7 @@ config GPIB_HP82341
 config GPIB_INES
        tristate "INES"
        depends on PCI || ISA_BUS || PCMCIA
+       depends on PCMCIA || !PCMCIA
        depends on HAS_IOPORT
        depends on !X86_PAE
        select GPIB_COMMON
@@ -199,8 +202,8 @@ config GPIB_INES
          called cb7210.
 
 config GPIB_PCMCIA
-       bool "PCMCIA/Cardbus support for NI MC and Ines boards"
-       depends on PCCARD && (GPIB_NI_PCI_ISA || GPIB_CB7210 || GPIB_INES)
+       def_bool y
+       depends on PCMCIA && (GPIB_NI_PCI_ISA || GPIB_CB7210 || GPIB_INES)
        help
          Enable PCMCIA/CArdbus support for National Instruments,
         measurement computing boards and Ines boards.