summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2015-03-05 18:27:34 -0500
committerGuenter Roeck <linux@roeck-us.net>2015-03-09 12:59:36 -0400
commit18fd303fea21c98b0b72534e6db47e80d12bf311 (patch)
treed5bf86109e572cf0c3de5fc2ffe32b4dabcf064a /drivers/hwmon
parentde52b049d6d5af635d628d17fcb466d53a9617af (diff)
hwmon: (pwm-fan) Fix build when THERMAL=m
Fix build errors when CONFIG_THERMAL=m and SENSORS_PWM_FAN=y by restricting SENSORS_PWM_FAN to 'm' when THERMAL=m. drivers/built-in.o: In function `pwm_fan_remove': pwm-fan.c:(.text+0x22ba58): undefined reference to `thermal_cooling_device_unregister' drivers/built-in.o: In function `pwm_fan_probe': pwm-fan.c:(.text+0x22bebb): undefined reference to `thermal_of_cooling_device_register' pwm-fan.c:(.text+0x22bf11): undefined reference to `thermal_cdev_update' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Kamil Debski <k.debski@samsung.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 2a5dd697c142..c7db7ded9db7 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1174,6 +1174,7 @@ source drivers/hwmon/pmbus/Kconfig
1174config SENSORS_PWM_FAN 1174config SENSORS_PWM_FAN
1175 tristate "PWM fan" 1175 tristate "PWM fan"
1176 depends on (PWM && OF) || COMPILE_TEST 1176 depends on (PWM && OF) || COMPILE_TEST
1177 depends on THERMAL || THERMAL=n
1177 help 1178 help
1178 If you say yes here you get support for fans connected to PWM lines. 1179 If you say yes here you get support for fans connected to PWM lines.
1179 The driver uses the generic PWM interface, thus it will work on a 1180 The driver uses the generic PWM interface, thus it will work on a