diff mbox series

i2c: sprd: Fix undefined reference errors

Message ID 550ed5bf75d653e227d09266670caf2a058b0473.1504061716.git.baolin.wang@spreadtrum.com
State Accepted
Headers show
Series i2c: sprd: Fix undefined reference errors | expand

Commit Message

Baolin Wang Aug. 30, 2017, 3:05 a.m. UTC
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>
---
 drivers/i2c/busses/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang Aug. 31, 2017, 6:33 p.m. UTC | #1
On Wed, Aug 30, 2017 at 11:05:47AM +0800, Baolin Wang wrote:
> 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>

Applied to for-next, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 64729ac..71036c1 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -902,7 +902,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.