Browse Source

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>
Baolin Wang 8 years ago
parent
commit
8ce906c13c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/i2c/busses/Kconfig

+ 1 - 1
drivers/i2c/busses/Kconfig

@@ -910,7 +910,7 @@ config I2C_SIRF
 
 
 config I2C_SPRD
 config I2C_SPRD
 	bool "Spreadtrum I2C interface"
 	bool "Spreadtrum I2C interface"
-	depends on ARCH_SPRD
+	depends on I2C=y && ARCH_SPRD
 	help
 	help
 	  If you say yes to this option, support will be included for the
 	  If you say yes to this option, support will be included for the
 	  Spreadtrum I2C interface.
 	  Spreadtrum I2C interface.