From: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx> exynos_disable_plane() is used only once now thus remove it and call exynos_plane_dpms() directly. Signed-off-by: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx> --- drivers/gpu/drm/exynos/exynos_drm_plane.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index c0c53d6..34dcf17b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c @@ -191,18 +191,11 @@ exynos_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, exynos_crtc->ops->win_commit(exynos_crtc, exynos_plane->zpos); } -static int exynos_disable_plane(struct drm_plane *plane) -{ - exynos_plane_dpms(plane, DRM_MODE_DPMS_OFF); - - return 0; -} - static void exynos_plane_destroy(struct drm_plane *plane) { struct exynos_drm_plane *exynos_plane = to_exynos_plane(plane); - exynos_disable_plane(plane); + exynos_plane_dpms(plane, DRM_MODE_DPMS_OFF); drm_plane_cleanup(plane); kfree(exynos_plane); } -- 1.9.3 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel