From: Axel Lin Date: Fri, 25 Jul 2014 14:19:35 +0000 (+0800) Subject: hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dbd1db7d42c053f2f937dc52c5644e105043b082;p=linux-beck.git hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF This driver won't instantiate if OF is not configured, thus add OF dependency. Also add COMPILE_TEST to increase build testing coverage. Signed-off-by: Axel Lin Reviewed-by: Jean Delvare Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 6b904fbbf488..f00d048aa583 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1130,7 +1130,7 @@ source drivers/hwmon/pmbus/Kconfig config SENSORS_PWM_FAN tristate "PWM fan" - depends on PWM + depends on (PWM && OF) || COMPILE_TEST help If you say yes here you get support for fans connected to PWM lines. The driver uses the generic PWM interface, thus it will work on a