regulator: Further restrict RZG2L USB VBCTRL regulator dependencies
authorMark Brown <broonie@kernel.org>
Fri, 26 Jul 2024 13:49:41 +0000 (14:49 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jul 2024 14:11:25 +0000 (15:11 +0100)
Since the regulator can't be used without the USB controller also
tighten the dependency to match, as well as the default.

Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240726-regulator-restrict-rzg2l-v1-1-640e508896e2@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig

index 5be4460..5560dc4 100644 (file)
@@ -1636,7 +1636,7 @@ config REGULATOR_UNIPHIER
 
 config REGULATOR_RZG2L_VBCTRL
        tristate "Renesas RZ/G2L USB VBUS regulator driver"
-       depends on ARCH_RZG2L || COMPILE_TEST
+       depends on RESET_RZG2L_USBPHY_CTRL || COMPILE_TEST
        depends on OF
        select REGMAP_MMIO
        default RESET_RZG2L_USBPHY_CTRL