Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 828f2070 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Liviu Dudau
Browse files

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: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
parent 084ffbd7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -278,6 +278,7 @@ static int malidp_init(struct drm_device *drm)

static void malidp_fini(struct drm_device *drm)
{
	drm_atomic_helper_shutdown(drm);
	drm_mode_config_cleanup(drm);
}

+0 −4
Original line number Diff line number Diff line
@@ -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);
}