diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-18 16:12:10 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-01-18 17:05:49 +0100 |
commit | 51962a359cdcea82b298810e52953ec59ed74427 (patch) | |
tree | 082a2d825f3803777babd8eb67cf723c9e0cb3dc /drivers/power/supply/abx500_chargalg.c | |
parent | b6d30432e04c750504dcfa19223cad830c89d02b (diff) | |
download | blackbird-op-linux-51962a359cdcea82b298810e52953ec59ed74427.tar.gz blackbird-op-linux-51962a359cdcea82b298810e52953ec59ed74427.zip |
power: supply: qcom_smbb: add regulator dependency
The added regulator dependency in the smbb driver causes build errors
when regulators are disabled, e.g. in randconfig build testing:
drivers/power/supply/qcom_smbb.o: In function `smbb_chg_otg_is_enabled':
qcom_smbb.c:(.text.smbb_chg_otg_is_enabled+0x18): undefined reference to `rdev_get_drvdata'
drivers/power/supply/qcom_smbb.o: In function `smbb_charger_probe':
qcom_smbb.c:(.text.smbb_charger_probe+0x410): undefined reference to `devm_regulator_register'
This adds a Kconfig dependency to avoid the link error.
Fixes: 61274eff0dde ("power: supply: qcom_smbb: Add otg regulator for control of vbus")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/supply/abx500_chargalg.c')
0 files changed, 0 insertions, 0 deletions