summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@spreadtrum.com>2017-08-30 05:05:47 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-08-31 20:32:33 +0200
commit8ce906c13c32cfd3de71063ca4b8c3b774e4ca08 (patch)
tree9e69ae26fd0d85a33709c3a7d77cbf289b94e41e /drivers/i2c
parenti2c: nomadik: constify amba_id (diff)
downloadlinux-8ce906c13c32cfd3de71063ca4b8c3b774e4ca08.tar.xz
linux-8ce906c13c32cfd3de71063ca4b8c3b774e4ca08.zip
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 <baolin.wang@spreadtrum.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/Kconfig2
1 files changed, 1 insertions, 1 deletions
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.