diff options
author | YueHaibing <[email protected]> | 2019-05-10 15:18:23 +0800 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2019-05-10 18:20:50 +0200 |
commit | c8f3c9fe83cafc94679007b9c0083ee25d5735e0 (patch) | |
tree | de4209e5241782f8c24703daf21b906a232ba38c /drivers/hwmon/pwm-fan.c | |
parent | 09eb8b7c5adcc5d1d1908d78237dd7ae1d8605b6 (diff) |
power: supply: ucs1002: Fix build error without CONFIG_REGULATOR
Fix gcc build error while CONFIG_REGULATOR is not set
drivers/power/supply/ucs1002_power.o: In function `ucs1002_probe':
drivers/power/supply/ucs1002_power.c:593: undefined reference to `devm_regulator_register'
drivers/power/supply/ucs1002_power.o:(.rodata+0x3b8): undefined reference to `regulator_enable_regmap'
drivers/power/supply/ucs1002_power.o:(.rodata+0x3c0): undefined reference to `regulator_disable_regmap'
drivers/power/supply/ucs1002_power.o:(.rodata+0x3c8): undefined reference to `regulator_is_enabled_regmap'
Add Kconfig dependency to CONFIG_REGULATOR.
Reported-by: Hulk Robot <[email protected]>
Fixes: 9a2688e42638 ("power: supply: Add driver for Microchip UCS1002")
Signed-off-by: YueHaibing <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
0 files changed, 0 insertions, 0 deletions