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:
5d7cb36
)
drm/arcpgu: convert to of_drm_find_and_get_bridge()
author
Luca Ceresoli
<luca.ceresoli@bootlin.com>
Tue, 16 Dec 2025 17:58:38 +0000
(18:58 +0100)
committer
Luca Ceresoli
<luca.ceresoli@bootlin.com>
Tue, 30 Dec 2025 09:11:33 +0000
(10:11 +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 it when done.
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link:
https://patch.msgid.link/20251216-drm-bridge-alloc-getput-drm_of_find_bridge-v3-5-b5165fab8058@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/tiny/arcpgu.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tiny/arcpgu.c
b/drivers/gpu/drm/tiny/arcpgu.c
index
7cf0f0e
..
5058884
100644
(file)
--- a/
drivers/gpu/drm/tiny/arcpgu.c
+++ b/
drivers/gpu/drm/tiny/arcpgu.c
@@
-308,10
+308,9
@@
static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
return ret;
if (encoder_node) {
- struct drm_bridge *bridge;
-
/* Locate drm bridge from the hdmi encoder DT node */
- bridge = of_drm_find_bridge(encoder_node);
+ struct drm_bridge *bridge __free(drm_bridge_put) =
+ of_drm_find_and_get_bridge(encoder_node);
if (!bridge)
return -EPROBE_DEFER;