Skip to content

Commit 3a03a0e

Browse files
arndbvinodkoul
authored andcommitted
phy: renesas: rcar-gen3-usb2: add regulator dependency
The driver start registering a regulator, but can still be enabled even when it is unable to call into the regulator subsystem: aarch64-linux-ld: drivers/phy/renesas/phy-rcar-gen3-usb2.o: in function `rcar_gen3_phy_usb2_probe': phy-rcar-gen3-usb2.c:(.text+0x2884): undefined reference to `devm_regulator_register' Add a Kconfig dependency to avoid this configuration. Fixes: b6d7dd1 ("phy: renesas: rcar-gen3-usb2: Add regulator for OTG VBUS control") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> Link: https://patch.msgid.link/20260202095118.1233046-1-arnd@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 8a13968 commit 3a03a0e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/phy/renesas/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ config PHY_RCAR_GEN3_USB2
2929
depends on ARCH_RENESAS
3030
depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
3131
depends on USB_SUPPORT
32+
depends on REGULATOR
3233
select GENERIC_PHY
3334
select MULTIPLEXER
3435
select USB_COMMON

0 commit comments

Comments
 (0)