The DM_REGULATOR_QCOM_USB_VBUS functionality can only work with DM_PMIC
enabled as well, so express this dependency in Kconfig.

Signed-off-by: Tom Rini <[email protected]>
---
Cc: Casey Connolly <[email protected]>
---
 drivers/power/regulator/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/regulator/Kconfig b/drivers/power/regulator/Kconfig
index 4f39e46cebd5..a4ee5f1335ad 100644
--- a/drivers/power/regulator/Kconfig
+++ b/drivers/power/regulator/Kconfig
@@ -244,7 +244,7 @@ config DM_REGULATOR_QCOM_RPMH
 
 config DM_REGULATOR_QCOM_USB_VBUS
        bool "Enable driver model for Qualcomm USB vbus regulator"
-       depends on DM_REGULATOR
+       depends on DM_REGULATOR && DM_PMIC
        ---help---
          Enable support for the Qualcomm USB Vbus regulator. The driver
          implements get/set api for the regulator to be used by u-boot.
-- 
2.43.0

Reply via email to