aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-07 09:38:22 -0400
committerMark Brown <broonie@kernel.org>2019-08-08 15:42:29 -0400
commit5375f1efd70b5adbbbaded22889d50c07f6f89a4 (patch)
tree2bc975fb8a3a69d7f1b913fdc49a6f06f75f95fb
parent06369bcc15a1620930a17fb35e26477504cd2255 (diff)
regulator: act8865: Fix build error without CONFIG_POWER_SUPPLY
Building without CONFIG_POWER_SUPPLY will fail: drivers/regulator/act8865-regulator.o: In function `act8865_pmic_probe': act8865-regulator.c:(.text+0x357): undefined reference to `devm_power_supply_register' drivers/regulator/act8865-regulator.o: In function `act8600_charger_get_property': act8865-regulator.c:(.text+0x3f1): undefined reference to `power_supply_get_drvdata' Add POWER_SUPPLY dependency to Kconfig. Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 2d09a79bf637 ("regulator: act8865: Add support for act8600 charger") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190807133822.67124-1-yuehaibing@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index b57093d7c01f..37e64884b9ee 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -83,6 +83,7 @@ config REGULATOR_88PM8607
83config REGULATOR_ACT8865 83config REGULATOR_ACT8865
84 tristate "Active-semi act8865 voltage regulator" 84 tristate "Active-semi act8865 voltage regulator"
85 depends on I2C 85 depends on I2C
86 depends on POWER_SUPPLY
86 select REGMAP_I2C 87 select REGMAP_I2C
87 help 88 help
88 This driver controls a active-semi act8865 voltage output 89 This driver controls a active-semi act8865 voltage output