From: Baolin Wang Date: Wed, 30 Aug 2017 03:05:47 +0000 (+0800) Subject: i2c: sprd: Fix undefined reference errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ce906c13c32cfd3de71063ca4b8c3b774e4ca08;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c: sprd: Fix undefined reference errors Since the i2c driver of Spreadtrum can not be build as one module, thus it should depend on CONFIG_I2C is build in. Signed-off-by: Baolin Wang Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 1bd3e5fc337b..f9ba983e0fb0 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -910,7 +910,7 @@ config I2C_SIRF config I2C_SPRD bool "Spreadtrum I2C interface" - depends on ARCH_SPRD + depends on I2C=y && ARCH_SPRD help If you say yes to this option, support will be included for the Spreadtrum I2C interface.