Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: add HAS_IOPORT dependencies

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.

Link: https://lore.kernel.org/linux-media/20230522105049.1467313-19-schnelle@linux.ibm.com
Reviewed-by: Sean Young <sean@mess.org> # media/rc
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: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Niklas Schnelle and committed by
Mauro Carvalho Chehab
7997604b 582d4ad4

+20 -2
+1 -1
drivers/media/pci/dm1105/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 config DVB_DM1105 3 3 tristate "SDMC DM1105 based PCI cards" 4 - depends on DVB_CORE && PCI && I2C && I2C_ALGOBIT 4 + depends on DVB_CORE && PCI && I2C && I2C_ALGOBIT && HAS_IOPORT 5 5 select DVB_PLL if MEDIA_SUBDRV_AUTOSELECT 6 6 select DVB_STV0299 if MEDIA_SUBDRV_AUTOSELECT 7 7 select DVB_STV0288 if MEDIA_SUBDRV_AUTOSELECT
+13 -1
drivers/media/radio/Kconfig
··· 15 15 16 16 config RADIO_MAXIRADIO 17 17 tristate "Guillemot MAXI Radio FM 2000 radio" 18 - depends on PCI 18 + depends on PCI && HAS_IOPORT 19 19 select RADIO_TEA575X 20 20 help 21 21 Choose Y here if you have this radio card. This card may also be ··· 232 232 menuconfig V4L_RADIO_ISA_DRIVERS 233 233 bool "ISA radio devices" 234 234 depends on ISA || COMPILE_TEST 235 + depends on HAS_IOPORT 235 236 help 236 237 Say Y here to enable support for these ISA drivers. 237 238 ··· 241 240 config RADIO_AZTECH 242 241 tristate "Aztech/Packard Bell Radio" 243 242 depends on ISA || COMPILE_TEST 243 + depends on HAS_IOPORT 244 244 select RADIO_ISA 245 245 help 246 246 Choose Y here if you have one of these FM radio cards, and then fill ··· 262 260 config RADIO_CADET 263 261 tristate "ADS Cadet AM/FM Tuner" 264 262 depends on ISA || COMPILE_TEST 263 + depends on HAS_IOPORT 265 264 help 266 265 Choose Y here if you have one of these AM/FM radio cards, and then 267 266 fill in the port address below. ··· 273 270 config RADIO_GEMTEK 274 271 tristate "GemTek Radio card (or compatible) support" 275 272 depends on ISA || COMPILE_TEST 273 + depends on HAS_IOPORT 276 274 select RADIO_ISA 277 275 help 278 276 Choose Y here if you have this FM radio card, and then fill in the ··· 313 309 314 310 config RADIO_ISA 315 311 depends on ISA || COMPILE_TEST 312 + depends on HAS_IOPORT 316 313 tristate 317 314 318 315 config RADIO_MIROPCM20 ··· 334 329 config RADIO_RTRACK 335 330 tristate "AIMSlab RadioTrack (aka RadioReveal) support" 336 331 depends on ISA || COMPILE_TEST 332 + depends on HAS_IOPORT 337 333 select RADIO_ISA 338 334 help 339 335 Choose Y here if you have one of these FM radio cards, and then fill ··· 389 383 config RADIO_SF16FMI 390 384 tristate "SF16-FMI/SF16-FMP/SF16-FMD Radio" 391 385 depends on ISA || COMPILE_TEST 386 + depends on HAS_IOPORT 392 387 help 393 388 Choose Y here if you have one of these FM radio cards. 394 389 ··· 399 392 config RADIO_SF16FMR2 400 393 tristate "SF16-FMR2/SF16-FMD2 Radio" 401 394 depends on ISA || COMPILE_TEST 395 + depends on HAS_IOPORT 402 396 select RADIO_TEA575X 403 397 help 404 398 Choose Y here if you have one of these FM radio cards. ··· 410 402 config RADIO_TERRATEC 411 403 tristate "TerraTec ActiveRadio ISA Standalone" 412 404 depends on ISA || COMPILE_TEST 405 + depends on HAS_IOPORT 413 406 select RADIO_ISA 414 407 help 415 408 Choose Y here if you have this FM radio card. ··· 425 416 config RADIO_TRUST 426 417 tristate "Trust FM radio card" 427 418 depends on ISA || COMPILE_TEST 419 + depends on HAS_IOPORT 428 420 select RADIO_ISA 429 421 help 430 422 This is a driver for the Trust FM radio cards. Say Y if you have ··· 449 439 config RADIO_TYPHOON 450 440 tristate "Typhoon Radio (a.k.a. EcoRadio)" 451 441 depends on ISA || COMPILE_TEST 442 + depends on HAS_IOPORT 452 443 select RADIO_ISA 453 444 help 454 445 Choose Y here if you have one of these FM radio cards, and then fill ··· 484 473 config RADIO_ZOLTRIX 485 474 tristate "Zoltrix Radio" 486 475 depends on ISA || COMPILE_TEST 476 + depends on HAS_IOPORT 487 477 select RADIO_ISA 488 478 help 489 479 Choose Y here if you have one of these FM radio cards, and then fill
+6
drivers/media/rc/Kconfig
··· 148 148 config IR_ENE 149 149 tristate "ENE eHome Receiver/Transceiver (pnp id: ENE0100/ENE02xxx)" 150 150 depends on PNP || COMPILE_TEST 151 + depends on HAS_IOPORT 151 152 help 152 153 Say Y here to enable support for integrated infrared receiver 153 154 /transceiver made by ENE. ··· 162 161 config IR_FINTEK 163 162 tristate "Fintek Consumer Infrared Transceiver" 164 163 depends on PNP || COMPILE_TEST 164 + depends on HAS_IOPORT 165 165 help 166 166 Say Y here to enable support for integrated infrared receiver 167 167 /transceiver made by Fintek. This chip is found on assorted ··· 251 249 config IR_ITE_CIR 252 250 tristate "ITE Tech Inc. IT8712/IT8512 Consumer Infrared Transceiver" 253 251 depends on PNP || COMPILE_TEST 252 + depends on HAS_IOPORT 254 253 help 255 254 Say Y here to enable support for integrated infrared receivers 256 255 /transceivers made by ITE Tech Inc. These are found in ··· 304 301 config IR_NUVOTON 305 302 tristate "Nuvoton w836x7hg Consumer Infrared Transceiver" 306 303 depends on PNP || COMPILE_TEST 304 + depends on HAS_IOPORT 307 305 help 308 306 Say Y here to enable support for integrated infrared receiver 309 307 /transceiver made by Nuvoton (formerly Winbond). This chip is ··· 349 345 350 346 config IR_SERIAL 351 347 tristate "Homebrew Serial Port Receiver" 348 + depends on HAS_IOPORT 352 349 help 353 350 Say Y if you want to use Homebrew Serial Port Receivers and 354 351 Transceivers. ··· 417 412 config IR_WINBOND_CIR 418 413 tristate "Winbond IR remote control" 419 414 depends on (X86 && PNP) || COMPILE_TEST 415 + depends on HAS_IOPORT 420 416 select NEW_LEDS 421 417 select LEDS_CLASS 422 418 select BITREVERSE