[PATCH 22/26] drm/exynos: hdmi: use devm_drm_of_find_bridge() to put the next bridge
Luca Ceresoli
luca.ceresoli at bootlin.com
Wed Nov 19 05:05:53 PST 2025
This driver obtains a bridge pointer from of_drm_find_bridge() in the probe
function and stores it until driver removal. of_drm_find_bridge() is
deprecated. Move to devm_drm_of_find_bridge() which puts the bridge
reference on remove or on probe failure.
Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
---
drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 01813e11e6c6..3fe32093f0c7 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 = devm_drm_of_find_bridge(dev, np);
of_node_put(np);
if (!hdata->bridge)
--
2.51.1
More information about the linux-amlogic
mailing list