mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
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>
This commit is contained in:
parent
a4b4385d05
commit
f675a276b8
1 changed files with 2 additions and 1 deletions
|
|
@ -171,9 +171,10 @@ static inline int drm_of_panel_bridge_remove(const struct device_node *np,
|
|||
if (!remote)
|
||||
return -ENODEV;
|
||||
|
||||
bridge = of_drm_find_bridge(remote);
|
||||
bridge = of_drm_find_and_get_bridge(remote);
|
||||
drm_panel_bridge_remove(bridge);
|
||||
|
||||
drm_bridge_put(bridge);
|
||||
of_node_put(remote);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue