From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751936AbbCJXmu (ORCPT ); Tue, 10 Mar 2015 19:42:50 -0400 Received: from casper.infradead.org ([85.118.1.10]:41007 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbbCJXmt (ORCPT ); Tue, 10 Mar 2015 19:42:49 -0400 Message-ID: <54FF8171.9080101@infradead.org> Date: Tue, 10 Mar 2015 16:42:41 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: LKML , lm-sensors@lm-sensors.org CC: Jean Delvare , Guenter Roeck , Simon Guinot Subject: [PATCH -next] hwmon: fix gpio-fan.c build Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap Fix build error when CONFIG_THERMAL=m and SENSORS_GPIO_FAN=y by preventing that combination. Fixes these build errors: drivers/built-in.o: In function `gpio_fan_remove': gpio-fan.c:(.text+0x21e97e): undefined reference to `thermal_cooling_device_unregister' drivers/built-in.o: In function `gpio_fan_probe': gpio-fan.c:(.text+0x21efbc): undefined reference to `thermal_cooling_device_register' Signed-off-by: Randy Dunlap Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sensors@lm-sensors.org Cc: Simon Guinot --- drivers/hwmon/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20150310.orig/drivers/hwmon/Kconfig +++ linux-next-20150310/drivers/hwmon/Kconfig @@ -510,6 +510,7 @@ config SENSORS_G762 config SENSORS_GPIO_FAN tristate "GPIO fan" depends on GPIOLIB + depends on THERMAL || THERMAL=n help If you say yes here you get support for fans connected to GPIO lines.