• Arnd Bergmann's avatar
    power: supply: qcom_smbb: add regulator dependency · 51962a35
    Arnd Bergmann authored
    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: 61274eff ("power: supply: qcom_smbb: Add otg regulator for control of vbus")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
    51962a35
Kconfig 15.1 KB