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
This commit is contained in:
@ -14,6 +14,7 @@
|
|||||||
#include <drm/drm_fourcc.h>
|
#include <drm/drm_fourcc.h>
|
||||||
#include <drm/drm_framebuffer.h>
|
#include <drm/drm_framebuffer.h>
|
||||||
#include <drm/drm_gem_cma_helper.h>
|
#include <drm/drm_gem_cma_helper.h>
|
||||||
|
#include <drm/drm_plane_helper.h>
|
||||||
#include <drm/drm_probe_helper.h>
|
#include <drm/drm_probe_helper.h>
|
||||||
|
|
||||||
#include "fsl_dcu_drm_drv.h"
|
#include "fsl_dcu_drm_drv.h"
|
||||||
@ -170,16 +171,10 @@ static const struct drm_plane_helper_funcs fsl_dcu_drm_plane_helper_funcs = {
|
|||||||
.atomic_update = fsl_dcu_drm_plane_atomic_update,
|
.atomic_update = fsl_dcu_drm_plane_atomic_update,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void fsl_dcu_drm_plane_destroy(struct drm_plane *plane)
|
|
||||||
{
|
|
||||||
drm_plane_cleanup(plane);
|
|
||||||
kfree(plane);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct drm_plane_funcs fsl_dcu_drm_plane_funcs = {
|
static const struct drm_plane_funcs fsl_dcu_drm_plane_funcs = {
|
||||||
.atomic_duplicate_state = drm_atomic_helper_plane_duplicate_state,
|
.atomic_duplicate_state = drm_atomic_helper_plane_duplicate_state,
|
||||||
.atomic_destroy_state = drm_atomic_helper_plane_destroy_state,
|
.atomic_destroy_state = drm_atomic_helper_plane_destroy_state,
|
||||||
.destroy = fsl_dcu_drm_plane_destroy,
|
.destroy = drm_plane_helper_destroy,
|
||||||
.disable_plane = drm_atomic_helper_disable_plane,
|
.disable_plane = drm_atomic_helper_disable_plane,
|
||||||
.reset = drm_atomic_helper_plane_reset,
|
.reset = drm_atomic_helper_plane_reset,
|
||||||
.update_plane = drm_atomic_helper_update_plane,
|
.update_plane = drm_atomic_helper_update_plane,
|
||||||
|
Reference in New Issue
Block a user