]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (gpio-fan) Fix Kconfig dependencies
authorGuenter Roeck <linux@roeck-us.net>
Wed, 21 Mar 2012 03:06:34 +0000 (23:06 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 1 Apr 2012 17:09:52 +0000 (10:09 -0700)
gpio-fan depends on GPIOLIB, not on GENERIC_GPIO.

This fixes the following build error, seen if GPIOLIB is not defined:

src/drivers/hwmon/gpio-fan.c: error: implicit declaration of function 'gpio_direction_output': => 372:3
src/drivers/hwmon/gpio-fan.c: error: implicit declaration of function 'gpio_free': => 130:2
src/drivers/hwmon/gpio-fan.c: error: implicit declaration of function 'gpio_get_value': => 79:2
src/drivers/hwmon/gpio-fan.c: error: implicit declaration of function 'gpio_request': => 98:2
src/drivers/hwmon/gpio-fan.c: error: implicit declaration of function 'gpio_set_value': => 156:3
src/drivers/hwmon/gpio-fan.c: error: implicit declaration of function 'gpio_to_irq': => 114:2

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Simon Guinot <sguinot@lacie.com>
drivers/hwmon/Kconfig

index 5b32d56dbb4dcc903f2736c920b8a4e62a682cca..496f80dcc80c78eb38557b5dadfcdca3da3f5156 100644 (file)
@@ -425,7 +425,7 @@ config SENSORS_GL520SM
 
 config SENSORS_GPIO_FAN
        tristate "GPIO fan"
-       depends on GENERIC_GPIO
+       depends on GPIOLIB
        help
          If you say yes here you get support for fans connected to GPIO lines.