[PATCH] misc: keba: Fix missing I2C dependency

Gerhard Engleder posted 1 patch 1 month, 1 week ago
drivers/misc/keba/Kconfig | 1 +
1 file changed, 1 insertion(+)
[PATCH] misc: keba: Fix missing I2C dependency
Posted by Gerhard Engleder 1 month, 1 week ago
From: Gerhard Engleder <eg@keba.com>

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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410130817.NXBCxx4q-lkp@intel.com/
Signed-off-by: Gerhard Engleder <eg@keba.com>
---
 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