Skip to content

Commit 2db0d29

Browse files
committed
drm/exynos: hdmi: convert to of_drm_find_and_get_bridge()
of_drm_find_bridge() is deprecated. Move to its replacement of_drm_find_and_get_bridge() which gets a bridge reference, and ensure it is put when done. Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Maxime Ripard <mripard@kernel.org> Link: https://patch.msgid.link/20260109-drm-bridge-alloc-getput-drm_of_find_bridge-3-v2-5-8d7a3dbacdf4@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
1 parent 4ace6fb commit 2db0d29

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/exynos/exynos_hdmi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ static int hdmi_bridge_init(struct hdmi_context *hdata)
17791779
return -EINVAL;
17801780
}
17811781

1782-
hdata->bridge = of_drm_find_bridge(np);
1782+
hdata->bridge = of_drm_find_and_get_bridge(np);
17831783
of_node_put(np);
17841784

17851785
if (!hdata->bridge)
@@ -2096,6 +2096,8 @@ static void hdmi_remove(struct platform_device *pdev)
20962096

20972097
put_device(&hdata->ddc_adpt->dev);
20982098

2099+
drm_bridge_put(hdata->bridge);
2100+
20992101
mutex_destroy(&hdata->mutex);
21002102
}
21012103

0 commit comments

Comments
 (0)