hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF
authorAxel Lin <axel.lin@ingics.com>
Fri, 25 Jul 2014 14:19:35 +0000 (22:19 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:40 +0000 (07:01 -0700)
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 <axel.lin@ingics.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/Kconfig

index 6b904fbbf488a9db6161b1ea2ede16447d6cadb6..f00d048aa583591c45aca5a7e683002c5bbc4721 100644 (file)
@@ -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