diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2015-04-01 12:02:10 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-04-12 22:39:40 -0400 |
commit | 97464d7d9dd2443571ec4f113b10588ffd4abd79 (patch) | |
tree | 85250d9512918116827f7cd1e01e83daa90ba5d0 | |
parent | 92104886e4834c2ceb8748efa49d040714018eb5 (diff) |
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 <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_plane.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index d8bb6a1040ef..043a6ba2e842 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) | |||
178 | return 0; | 178 | return 0; |
179 | } | 179 | } |
180 | 180 | ||
181 | static void exynos_plane_destroy(struct drm_plane *plane) | ||
182 | { | ||
183 | exynos_disable_plane(plane); | ||
184 | drm_plane_cleanup(plane); | ||
185 | } | ||
186 | |||
187 | static struct drm_plane_funcs exynos_plane_funcs = { | 181 | static struct drm_plane_funcs exynos_plane_funcs = { |
188 | .update_plane = exynos_update_plane, | 182 | .update_plane = exynos_update_plane, |
189 | .disable_plane = exynos_disable_plane, | 183 | .disable_plane = exynos_disable_plane, |
190 | .destroy = exynos_plane_destroy, | 184 | .destroy = drm_plane_cleanup, |
191 | }; | 185 | }; |
192 | 186 | ||
193 | static void exynos_plane_attach_zpos_property(struct drm_plane *plane, | 187 | static void exynos_plane_attach_zpos_property(struct drm_plane *plane, |