Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+3 -1
+3 -1
drivers/gpu/drm/exynos/exynos_hdmi.c
··· 1779 1779 return -EINVAL; 1780 1780 } 1781 1781 1782 - hdata->bridge = of_drm_find_bridge(np); 1782 + hdata->bridge = of_drm_find_and_get_bridge(np); 1783 1783 of_node_put(np); 1784 1784 1785 1785 if (!hdata->bridge) ··· 2095 2095 iounmap(hdata->regs_hdmiphy); 2096 2096 2097 2097 put_device(&hdata->ddc_adpt->dev); 2098 + 2099 + drm_bridge_put(hdata->bridge); 2098 2100 2099 2101 mutex_destroy(&hdata->mutex); 2100 2102 }