mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
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>
This commit is contained in:
parent
92104886e4
commit
97464d7d9d
1 changed files with 1 additions and 7 deletions
|
@ -178,16 +178,10 @@ static int exynos_disable_plane(struct drm_plane *plane)
|
||||||
return 0;
|
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 = {
|
static struct drm_plane_funcs exynos_plane_funcs = {
|
||||||
.update_plane = exynos_update_plane,
|
.update_plane = exynos_update_plane,
|
||||||
.disable_plane = exynos_disable_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,
|
static void exynos_plane_attach_zpos_property(struct drm_plane *plane,
|
||||||
|
|
Loading…
Add table
Reference in a new issue