Skip to contentSkip to conversation

media: cec: seco: add HAS_IOPORT dependency

PATCH New Arnd Bergmann 1 participant 1 message Oct 4, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: cec: seco: add HAS_IOPORT dependency

From: Arnd Bergmann <[email protected]>

This driver is now enabled for compile-testing on architectures that may not have I/O port access:

drivers/media/cec/platform/seco/seco-cec.c: In function 'smb_word_op.constprop.isra':
include/asm-generic/io.h:542:14: error: call to '_inb' declared with attribute error: inb()) requires CONFIG_HAS_IOPORT

Add a Kconfig dependency again.

---
 drivers/media/cec/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/cec/platform/Kconfig +1 -1
index b672d3142eb7..e40413609f53 100644
@@ -99,7 +99,7 @@ config CEC_TEGRA
 
 config CEC_SECO
 	tristate "SECO Boards HDMI CEC driver"
-	depends on X86 || COMPILE_TEST
+	depends on X86 || (COMPILE_TEST && HAS_IOPORT)
 	depends on PCI && DMI
 	select CEC_CORE
 	select CEC_NOTIFIER
Signature · 1 line
2.39.2