staging: gpib: fix pcmcia dependencies

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>

authored by Arnd Bergmann and committed by Greg Kroah-Hartman edbb7200 003d2abd

+5 -2
+5 -2
drivers/staging/gpib/Kconfig
··· 65 65 depends on ISA_BUS || PCI || PCMCIA 66 66 depends on HAS_IOPORT 67 67 depends on !X86_PAE 68 + depends on PCMCIA || !PCMCIA 68 69 select GPIB_COMMON 69 70 select GPIB_NEC7210 70 71 help ··· 90 89 depends on HAS_IOPORT 91 90 depends on ISA_BUS || PCI || PCMCIA 92 91 depends on !X86_PAE 92 + depends on PCMCIA || !PCMCIA 93 93 select GPIB_COMMON 94 94 select GPIB_NEC7210 95 95 help ··· 179 177 config GPIB_INES 180 178 tristate "INES" 181 179 depends on PCI || ISA_BUS || PCMCIA 180 + depends on PCMCIA || !PCMCIA 182 181 depends on HAS_IOPORT 183 182 depends on !X86_PAE 184 183 select GPIB_COMMON ··· 202 199 called cb7210. 203 200 204 201 config GPIB_PCMCIA 205 - bool "PCMCIA/Cardbus support for NI MC and Ines boards" 206 - depends on PCCARD && (GPIB_NI_PCI_ISA || GPIB_CB7210 || GPIB_INES) 202 + def_bool y 203 + depends on PCMCIA && (GPIB_NI_PCI_ISA || GPIB_CB7210 || GPIB_INES) 207 204 help 208 205 Enable PCMCIA/CArdbus support for National Instruments, 209 206 measurement computing boards and Ines boards.