summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>2026-02-02 12:42:01 +0300
committerSuraj Kandpal <suraj.kandpal@intel.com>2026-02-10 08:33:11 +0300
commit3c2d28f4a67af7ada8f3332270b0d349967e6aa1 (patch)
treefef14f9ba101f7def6f8c070ec19030beee1c941
parentfe057ba431868a926fa54f28a0d2891aea6f0584 (diff)
downloadlinux-3c2d28f4a67af7ada8f3332270b0d349967e6aa1.tar.xz
drm/colorop: Use destroy callback for color pipeline teardown
Switch drm_colorop_pipeline_destroy() to use the driver-provided destroy callback instead of directly calling drm_colorop_cleanup() and freeing the object. This allows drivers that embed struct drm_colorop in driver-specific objects to perform correct teardown. Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com> Reviewed-by: Alex Hung <alex.hung@amd.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patch.msgid.link/20260202094202.2871478-9-chaitanya.kumar.borah@intel.com
-rw-r--r--drivers/gpu/drm/drm_colorop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_colorop.c b/drivers/gpu/drm/drm_colorop.c
index 2bce29176ab3..aa19de769eb2 100644
--- a/drivers/gpu/drm/drm_colorop.c
+++ b/drivers/gpu/drm/drm_colorop.c
@@ -208,8 +208,7 @@ void drm_colorop_pipeline_destroy(struct drm_device *dev)
struct drm_colorop *colorop, *next;
list_for_each_entry_safe(colorop, next, &config->colorop_list, head) {
- drm_colorop_cleanup(colorop);
- kfree(colorop);
+ colorop->funcs->destroy(colorop);
}
}
EXPORT_SYMBOL(drm_colorop_pipeline_destroy);