aboutsummaryrefslogtreecommitdiff
path: root/drivers/phy/samsung
diff options
context:
space:
mode:
authorGravatar Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 2023-01-27 20:40:53 +0100
committerGravatar Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 2023-02-03 20:20:59 +0100
commit220fc39815e13b1af901a61e5992c1a96b1dca78 (patch)
treea63bdd82d6f0010ee95ae9ff1bc3e0ea86bed9cd /drivers/phy/samsung
parentdt-bindings: phy: samsung,mipi-video-phy: deprecate syscon phandle (diff)
downloadlinux-220fc39815e13b1af901a61e5992c1a96b1dca78.tar.gz
linux-220fc39815e13b1af901a61e5992c1a96b1dca78.tar.bz2
linux-220fc39815e13b1af901a61e5992c1a96b1dca78.zip
phy: samsung,dp-video-phy: deprecate syscon phandle
The DisplayPort phy is actually part of the Power Management Unit system controller, thus it should be its child, instead of sibling node with syscon phandle. Acked-by: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/20230127194057.186458-5-krzysztof.kozlowski@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'drivers/phy/samsung')
-rw-r--r--drivers/phy/samsung/phy-exynos-dp-video.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/phy/samsung/phy-exynos-dp-video.c b/drivers/phy/samsung/phy-exynos-dp-video.c
index 2b670ef91deb..6069fedbd8f3 100644
--- a/drivers/phy/samsung/phy-exynos-dp-video.c
+++ b/drivers/phy/samsung/phy-exynos-dp-video.c
@@ -83,8 +83,11 @@ static int exynos_dp_video_phy_probe(struct platform_device *pdev)
if (!state)
return -ENOMEM;
- state->regs = syscon_regmap_lookup_by_phandle(dev->of_node,
- "samsung,pmu-syscon");
+ state->regs = syscon_node_to_regmap(dev->parent->of_node);
+ if (IS_ERR(state->regs))
+ /* Backwards compatible way */
+ state->regs = syscon_regmap_lookup_by_phandle(dev->of_node,
+ "samsung,pmu-syscon");
if (IS_ERR(state->regs)) {
dev_err(dev, "Failed to lookup PMU regmap\n");
return PTR_ERR(state->regs);