]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/exynos: hdmi: convert to of_drm_find_and_get_bridge()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 9 Jan 2026 10:02:54 +0000 (11:02 +0100)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 21 Jan 2026 12:59:56 +0000 (13:59 +0100)
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>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 01813e11e6c6ce7f2733ff3ac52398d6b1a2cedf..bfcf2fa62fe18bbf74ee4d61f097ee11b1ee1b68 100644 (file)
@@ -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);
 }