i2c: sprd: Fix undefined reference errors
authorBaolin Wang <baolin.wang@spreadtrum.com>
Wed, 30 Aug 2017 03:05:47 +0000 (11:05 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 31 Aug 2017 18:32:33 +0000 (20:32 +0200)
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>
drivers/i2c/busses/Kconfig

index 1bd3e5fc337b971819b3339d23ac2395afa047fe..f9ba983e0fb0693c60110fa6ca5ee2a717118fed 100644 (file)
@@ -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.