hwmon: (pwm-fan) Fix build when THERMAL=m
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 5 Mar 2015 23:27:34 +0000 (15:27 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Mar 2015 16:59:36 +0000 (09:59 -0700)
commit18fd303fea21c98b0b72534e6db47e80d12bf311
treed5bf86109e572cf0c3de5fc2ffe32b4dabcf064a
parentde52b049d6d5af635d628d17fcb466d53a9617af
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>
drivers/hwmon/Kconfig