Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbdH3DPI (ORCPT ); Tue, 29 Aug 2017 23:15:08 -0400 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:32734 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751318AbdH3DPG (ORCPT ); Tue, 29 Aug 2017 23:15:06 -0400 From: Baolin Wang To: CC: , , , , , Subject: [PATCH] i2c: sprd: Fix undefined reference errors Date: Wed, 30 Aug 2017 11:05:47 +0800 Message-ID: <550ed5bf75d653e227d09266670caf2a058b0473.1504061716.git.baolin.wang@spreadtrum.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 Content-Type: text/plain X-MAIL: SHSQR01.spreadtrum.com v7U3Anti014743 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 689 Lines: 23 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 --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 1.7.9.5