Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/fsl-dcu: Use drm_plane_helper_destroy()

Replace the driver's own function with drm_plane_helper_destroy(). No
functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220720083058.15371-8-tzimmermann@suse.de

+2 -7
+2 -7
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c
··· 14 14 #include <drm/drm_fourcc.h> 15 15 #include <drm/drm_framebuffer.h> 16 16 #include <drm/drm_gem_cma_helper.h> 17 + #include <drm/drm_plane_helper.h> 17 18 #include <drm/drm_probe_helper.h> 18 19 19 20 #include "fsl_dcu_drm_drv.h" ··· 171 170 .atomic_update = fsl_dcu_drm_plane_atomic_update, 172 171 }; 173 172 174 - static void fsl_dcu_drm_plane_destroy(struct drm_plane *plane) 175 - { 176 - drm_plane_cleanup(plane); 177 - kfree(plane); 178 - } 179 - 180 173 static const struct drm_plane_funcs fsl_dcu_drm_plane_funcs = { 181 174 .atomic_duplicate_state = drm_atomic_helper_plane_duplicate_state, 182 175 .atomic_destroy_state = drm_atomic_helper_plane_destroy_state, 183 - .destroy = fsl_dcu_drm_plane_destroy, 176 + .destroy = drm_plane_helper_destroy, 184 177 .disable_plane = drm_atomic_helper_disable_plane, 185 178 .reset = drm_atomic_helper_plane_reset, 186 179 .update_plane = drm_atomic_helper_update_plane,