]> Git Repo - J-linux.git/commitdiff
phy: mediatek: phy-mtk-hdmi: add regulator dependency
authorArnd Bergmann <[email protected]>
Fri, 13 Dec 2024 08:30:51 +0000 (09:30 +0100)
committerVinod Koul <[email protected]>
Tue, 24 Dec 2024 15:08:53 +0000 (20:38 +0530)
The driver no longer builds when regulator support is unavailable:

arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi.o: in function `mtk_hdmi_phy_register_regulators':
phy-mtk-hdmi.c:(.text.unlikely+0x3e): undefined reference to `devm_regulator_register'
arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi-mt8195.o: in function `mtk_hdmi_phy_pwr5v_is_enabled':
phy-mtk-hdmi-mt8195.c:(.text+0x326): undefined reference to `rdev_get_drvdata'
arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi-mt8195.o: in function `mtk_hdmi_phy_pwr5v_disable':
phy-mtk-hdmi-mt8195.c:(.text+0x346): undefined reference to `rdev_get_drvdata'
arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi-mt8195.o: in function `mtk_hdmi_phy_pwr5v_enable':

Fixes: 49393b2da1cd ("phy: mediatek: phy-mtk-hdmi: Register PHY provided regulator")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/phy/mediatek/Kconfig

index 60e00057e8bc717ab7b517cd917e8751b0a836aa..ba6461350951cfcc91f4a6d2d9ef2f9552075b37 100644 (file)
@@ -65,6 +65,7 @@ config PHY_MTK_HDMI
        depends on ARCH_MEDIATEK || COMPILE_TEST
        depends on COMMON_CLK
        depends on OF
+       depends on REGULATOR
        select GENERIC_PHY
        help
          Support HDMI PHY for Mediatek SoCs.
This page took 0.048083 seconds and 4 git commands to generate.