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

drm/armada: 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-7-tzimmermann@suse.de

+2 -7
+2 -7
drivers/gpu/drm/armada/armada_overlay.c
··· 9 9 #include <drm/drm_atomic_helper.h> 10 10 #include <drm/drm_atomic_uapi.h> 11 11 #include <drm/drm_fourcc.h> 12 + #include <drm/drm_plane_helper.h> 12 13 13 14 #include "armada_crtc.h" 14 15 #include "armada_drm.h" ··· 298 297 return ret; 299 298 } 300 299 301 - static void armada_ovl_plane_destroy(struct drm_plane *plane) 302 - { 303 - drm_plane_cleanup(plane); 304 - kfree(plane); 305 - } 306 - 307 300 static void armada_overlay_reset(struct drm_plane *plane) 308 301 { 309 302 struct armada_overlay_state *state; ··· 462 467 static const struct drm_plane_funcs armada_ovl_plane_funcs = { 463 468 .update_plane = armada_overlay_plane_update, 464 469 .disable_plane = drm_atomic_helper_disable_plane, 465 - .destroy = armada_ovl_plane_destroy, 470 + .destroy = drm_plane_helper_destroy, 466 471 .reset = armada_overlay_reset, 467 472 .atomic_duplicate_state = armada_overlay_duplicate_state, 468 473 .atomic_destroy_state = drm_atomic_helper_plane_destroy_state,