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: of: drm_of_panel_bridge_remove(): 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.

Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20260109-drm-bridge-alloc-getput-drm_of_find_bridge-2-v2-2-8bad3ef90b9f@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

+2 -1
+2 -1
include/drm/drm_of.h
··· 171 171 if (!remote) 172 172 return -ENODEV; 173 173 174 - bridge = of_drm_find_bridge(remote); 174 + bridge = of_drm_find_and_get_bridge(remote); 175 175 drm_panel_bridge_remove(bridge); 176 176 177 + drm_bridge_put(bridge); 177 178 of_node_put(remote); 178 179 179 180 return 0;