drm: arm: malidp: Use drm_atomic_helper_shutdown() to disable planes on removal
The plane cleanup handler currently calls drm_plane_helper_disable(), which is a legacy helper function. Replace it with a call to drm_atomic_helper_shutdown() at removal time. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
This commit is contained in:

committed by
Liviu Dudau

parent
084ffbd7fd
commit
828f207077
@@ -59,10 +59,6 @@ static void malidp_de_plane_destroy(struct drm_plane *plane)
|
||||
{
|
||||
struct malidp_plane *mp = to_malidp_plane(plane);
|
||||
|
||||
if (mp->base.fb)
|
||||
drm_framebuffer_put(mp->base.fb);
|
||||
|
||||
drm_plane_helper_disable(plane);
|
||||
drm_plane_cleanup(plane);
|
||||
kfree(mp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user