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 dev_clk_get_from_provider() instead, letting us pass the consumer device, too. Signed-off-by: Geert Uytterhoeven <[email protected]> --- Compile-tested only. --- 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..a44e4b273924430e 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 = 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
