summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tiny/arcpgu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/tiny/arcpgu.c')
-rw-r--r--drivers/gpu/drm/tiny/arcpgu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c
index 7cf0f0ea1bfe..505888497482 100644
--- 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;