Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758261Ab0HKRgo (ORCPT ); Wed, 11 Aug 2010 13:36:44 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:42081 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753424Ab0HKRgn (ORCPT ); Wed, 11 Aug 2010 13:36:43 -0400 Date: Wed, 11 Aug 2010 10:35:11 -0700 From: Randy Dunlap To: Stephen Rothwell , lm-sensors@lm-sensors.org, Guenter Roeck Cc: linux-next@vger.kernel.org, LKML , akpm Subject: [PATCH -next] hwmon: jc42 depends on I2C Message-Id: <20100811103511.41428e62.randy.dunlap@oracle.com> In-Reply-To: <20100811140009.6ff33109.sfr@canb.auug.org.au> References: <20100811140009.6ff33109.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1324 Lines: 31 From: Randy Dunlap jc42 uses i2c interfaces, so it should depend on I2C. drivers/hwmon/jc42.c:426: error: implicit declaration of function 'i2c_check_functionality' drivers/hwmon/jc42.c:521: error: implicit declaration of function 'i2c_smbus_read_word_data' drivers/hwmon/jc42.c:529: error: implicit declaration of function 'i2c_smbus_write_word_data' drivers/hwmon/jc42.c:580: error: implicit declaration of function 'i2c_add_driver' drivers/hwmon/jc42.c:585: error: implicit declaration of function 'i2c_del_driver' Signed-off-by: Randy Dunlap Cc: lm-sensors@lm-sensors.org --- drivers/hwmon/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20100811.orig/drivers/hwmon/Kconfig +++ linux-next-20100811/drivers/hwmon/Kconfig @@ -465,6 +465,7 @@ config SENSORS_JZ4740 config SENSORS_JC42 tristate "JEDEC JC42.4 compliant temperature sensors" + depends on I2C help If you say yes here you get support for Jedec JC42.4 compliant temperature sensors. Support will include, but not be limited to, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/