projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b4385
)
drm: of: drm_of_panel_bridge_remove(): convert to of_drm_find_and_get_bridge()
author
Luca Ceresoli
<luca.ceresoli@bootlin.com>
Fri, 9 Jan 2026 07:31:33 +0000
(08:31 +0100)
committer
Luca Ceresoli
<luca.ceresoli@bootlin.com>
Tue, 20 Jan 2026 13:53:45 +0000
(14:53 +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.
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>
include/drm/drm_of.h
patch
|
blob
|
history
diff --git
a/include/drm/drm_of.h
b/include/drm/drm_of.h
index
f3e55ea
..
f2f2bf8
100644
(file)
--- a/
include/drm/drm_of.h
+++ b/
include/drm/drm_of.h
@@
-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;