[PATCH 05/26] drm/arcpgu: convert to drm_of_find_bridge()

Luca Ceresoli
2025-11-19T13:06:47Z

of_drm_find_bridge() is deprecated. Move to its replacement
drm_of_find_bridge() which gets a bridge reference, and put it when done.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
drivers/gpu/drm/tiny/arcpgu.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c
index 7cf0f0ea1bfe..bd9794897197 100644
--- a/drivers/gpu/drm/tiny/arcpgu.c
+++ b/drivers/gpu/drm/tiny/arcpgu.c
@@ -308,10 +308,8 @@ 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) = drm_of_find_bridge(encoder_node);
if (!bridge)
return -EPROBE_DEFER;

--
2.51.1