diff mbox series

[v2,05/16] drm/panel/exynos: Keep up with refcounting

Message ID 20250619-b4-of_drm_find_panel_part1-v2-5-0df94aecc43d@redhat.com
State New
Headers show
Series Use drm_panel_get/put() in of_drm_find_panel() and its callers | expand

Commit Message

Anusha Srivatsa June 19, 2025, 7:15 p.m. UTC
Put the panel reference back when driver is no
longer using it.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
v2: move drm_panel_put() inside the if()
---
 drivers/gpu/drm/exynos/exynos_drm_dpi.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/exynos/exynos_drm_dpi.c b/drivers/gpu/drm/exynos/exynos_drm_dpi.c
index 0dc36df6ada34cd0d4544f14e616fe3c52dafc73..3a258c4623b92a5a7c9aea3371d11a6c2df1cc8c 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dpi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dpi.c
@@ -137,6 +137,7 @@  static void exynos_dpi_disable(struct drm_encoder *encoder)
 	if (ctx->panel) {
 		drm_panel_disable(ctx->panel);
 		drm_panel_unprepare(ctx->panel);
+		drm_panel_put(ctx->panel);
 	}
 }