Commit b0076406 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Guenter Roeck

hwmon: (pmbus/ibm-cffps) Add dependency on LEDS_CLASS

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: ef9e1cdf ("hwmon: (pmbus/cffps) Add led class device ...")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ef9e1cdf
...@@ -39,6 +39,7 @@ config SENSORS_ADM1275 ...@@ -39,6 +39,7 @@ config SENSORS_ADM1275
config SENSORS_IBM_CFFPS config SENSORS_IBM_CFFPS
tristate "IBM Common Form Factor Power Supply" tristate "IBM Common Form Factor Power Supply"
depends on LEDS_CLASS
help help
If you say yes here you get hardware monitoring support for the IBM If you say yes here you get hardware monitoring support for the IBM
Common Form Factor power supply. Common Form Factor power supply.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment