]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
hwmon: (pmbus/ibm-cffps) Add dependency on LEDS_CLASS
authorArnd Bergmann <arnd@arndb.de>
Fri, 12 Jan 2018 15:49:00 +0000 (16:49 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 12 Jan 2018 17:24:16 +0000 (09:24 -0800)
Building without CONFIG_LEDS_CLASS causes a link failure:

drivers/hwmon/pmbus/ibm-cffps.o: In function `ibm_cffps_probe':
ibm-cffps.c:(.text+0x4f4): undefined reference to `devm_of_led_classdev_register'

This adds the required dependency.

Fixes: ef9e1cdf419a ("hwmon: (pmbus/cffps) Add led class device ...")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/Kconfig

index 08479006c7f9e9f65e6deaebb6031e5e9e5d3ef5..6e4298e99222552514ed05c4cd5b53ab8fd904fd 100644 (file)
@@ -39,6 +39,7 @@ config SENSORS_ADM1275
 
 config SENSORS_IBM_CFFPS
        tristate "IBM Common Form Factor Power Supply"
+       depends on LEDS_CLASS
        help
          If you say yes here you get hardware monitoring support for the IBM
          Common Form Factor power supply.