media: cec: seco: add HAS_IOPORT dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 4 Oct 2024 10:02:23 +0000 (10:02 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 12 Oct 2024 14:28:26 +0000 (16:28 +0200)
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.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/cec/platform/Kconfig

index ede81fe331b0de731988f23deccd7a4bddc86542..e40413609f537fd79ef9dfed58be78d8b13d13d7 100644 (file)
@@ -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