[PATCH v2 5/6] [RFT] drm/rockchip: dw_hdmi: Convert to of_dev_clk_get_from_provider()
Geert Uytterhoeven
geert at kernel.org
Wed Dec 2 00:50:13 PST 2026
From: Geert Uytterhoeven <geert+renesas at glider.be>
The Rockchip Designware HDMI driver uses of_clk_get_from_provider() to
obtain the clock for the HDMI PHY, so the latter shows up as
"deviceless" in the consumer column of the clk_summary file in debugfs.
Fix this by using of_dev_clk_get_from_provider() instead, letting us
pass the consumer device, too.
Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
Reviewed-by: Brian Masney <masneyb at kernel.org>
---
Compile-tested only.
v2:
- Add Reviewed-by,
- Add "of_"-prefix.
---
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
index b6e154c35e7c290e..82e1cc3a965fc001 100644
--- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
@@ -633,7 +633,8 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master,
if (!of_parse_phandle_with_args(np, "phys", "#phy-cells", index,
&clkspec)) {
- hdmi->hdmiphy_clk = of_clk_get_from_provider(&clkspec);
+ hdmi->hdmiphy_clk = of_dev_clk_get_from_provider(dev,
+ &clkspec);
of_node_put(clkspec.np);
if (IS_ERR(hdmi->hdmiphy_clk))
hdmi->hdmiphy_clk = NULL;
--
2.43.0
More information about the linux-arm-kernel
mailing list