[PATCH] misc: keba: Fix missing I2C dependency

From: Gerhard Engleder
Date: Wed Oct 16 2024 - 14:43:52 EST


From: Gerhard Engleder <eg@xxxxxxxx>

Kernel test robot reported a build error on csky:

drivers/misc/keba/cp500.c:287:(.text+0x1c0): undefined reference to `i2c_verify_client'

Add I2C dependency to fix build error.

Fixes: 794848300103 ("misc: keba: Add SPI controller device")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202410130817.NXBCxx4q-lkp@xxxxxxxxx/
Signed-off-by: Gerhard Engleder <eg@xxxxxxxx>
---
drivers/misc/keba/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/misc/keba/Kconfig b/drivers/misc/keba/Kconfig
index dc27b902f34e..08c8970d8d58 100644
--- a/drivers/misc/keba/Kconfig
+++ b/drivers/misc/keba/Kconfig
@@ -2,6 +2,7 @@
config KEBA_CP500
tristate "KEBA CP500 system FPGA support"
depends on PCI
+ depends on I2C
select AUXILIARY_BUS
help
This driver supports the KEBA CP500 system FPGA, which is used in
--
2.39.2