[PATCH v2 10/16] drm/panel/omapdrm: Keep up with refcounting
Anusha Srivatsa
asrivats at redhat.com
Thu Jun 19 12:16:02 PDT 2025
Put the reference of the panel returned by
of_drm_find_panel().
Patch added in v2.
Signed-off-by: Anusha Srivatsa <asrivats at redhat.com>
---
drivers/gpu/drm/omapdrm/dss/output.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/output.c b/drivers/gpu/drm/omapdrm/dss/output.c
index 7378e855c278c3809bc431ff48a1c5a41b7dedfc..259ef19d4be2cb559ba9ffe53db9e6e4b4409b21 100644
--- a/drivers/gpu/drm/omapdrm/dss/output.c
+++ b/drivers/gpu/drm/omapdrm/dss/output.c
@@ -48,7 +48,6 @@ int omapdss_device_init_output(struct omap_dss_device *out,
ret = PTR_ERR(bridge);
goto error;
}
-
out->bridge = bridge;
}
@@ -76,9 +75,12 @@ int omapdss_device_init_output(struct omap_dss_device *out,
void omapdss_device_cleanup_output(struct omap_dss_device *out)
{
- if (out->bridge && out->panel)
+ if (out->bridge && out->panel) {
drm_panel_bridge_remove(out->next_bridge ?
out->next_bridge : out->bridge);
+ drm_panel_put(out->panel);
+
+ }
}
void dss_mgr_set_timings(struct omap_dss_device *dssdev,
--
2.48.1
More information about the linux-arm-kernel
mailing list