From: Luca Ceresoli Date: Fri, 9 Jan 2026 10:02:54 +0000 (+0100) Subject: drm/exynos: hdmi: convert to of_drm_find_and_get_bridge() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db0d298f22d685e0c9f7f66ab6470f12a0255b6;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: Maxime Ripard 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 --- diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 01813e11e6c6c..bfcf2fa62fe18 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1779,7 +1779,7 @@ static int hdmi_bridge_init(struct hdmi_context *hdata) return -EINVAL; } - hdata->bridge = of_drm_find_bridge(np); + hdata->bridge = of_drm_find_and_get_bridge(np); of_node_put(np); if (!hdata->bridge) @@ -2096,6 +2096,8 @@ static void hdmi_remove(struct platform_device *pdev) put_device(&hdata->ddc_adpt->dev); + drm_bridge_put(hdata->bridge); + mutex_destroy(&hdata->mutex); }