Skip to content

Commit

Permalink
drm: arm: malidp: Use drm_atomic_helper_shutdown() to disable planes …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Laurent Pinchart authored and Liviu Dudau committed Mar 14, 2018
1 parent 084ffbd commit 828f207
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/arm/malidp_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 0 additions & 4 deletions drivers/gpu/drm/arm/malidp_planes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 828f207

Please sign in to comment.