From: Gustavo Padovan Date: Wed, 1 Apr 2015 16:02:10 +0000 (-0300) Subject: drm/exynos: remove exynos_plane_destroy() X-Git-Tag: v4.1-rc1~69^2~9^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97464d7d9dd2443571ec4f113b10588ffd4abd79;p=platform%2Fkernel%2Flinux-exynos.git drm/exynos: remove exynos_plane_destroy() The .destroy() callback for exynos can be replaced by drm_plane_cleanup(). The only extra operation on exynos_plane_destroy() was a call to exynos_plane_disable() but the plane is already disabled by a earlier call to drm_framebuffer_remove(). Signed-off-by: Gustavo Padovan Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index d8bb6a1..043a6ba 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c @@ -178,16 +178,10 @@ static int exynos_disable_plane(struct drm_plane *plane) return 0; } -static void exynos_plane_destroy(struct drm_plane *plane) -{ - exynos_disable_plane(plane); - drm_plane_cleanup(plane); -} - static struct drm_plane_funcs exynos_plane_funcs = { .update_plane = exynos_update_plane, .disable_plane = exynos_disable_plane, - .destroy = exynos_plane_destroy, + .destroy = drm_plane_cleanup, }; static void exynos_plane_attach_zpos_property(struct drm_plane *plane,