[05/10] drm/exynos: Use __drm_atomic_helper_plane_reset instead of copying the logic

Submitted by Alexandru-Cosmin Gheorghe on July 20, 2018, 9:15 p.m.

Details

Message ID 20180720211509.23605-6-alexandru-cosmin.gheorghe@arm.com
State New
Headers show
Series "Series without cover letter" ( rev: 7 ) in DRI devel

Not browsing as part of any series.

Commit Message

Alexandru-Cosmin Gheorghe July 20, 2018, 9:15 p.m.
Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
---
 drivers/gpu/drm/exynos/exynos_drm_plane.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c
index eb9915da7dec..681328fbe7de 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_plane.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c
@@ -139,8 +139,7 @@  static void exynos_drm_plane_reset(struct drm_plane *plane)
 
 	exynos_state = kzalloc(sizeof(*exynos_state), GFP_KERNEL);
 	if (exynos_state) {
-		plane->state = &exynos_state->base;
-		plane->state->plane = plane;
+		__drm_atomic_helper_plane_reset(plane, &exynos_state->base);
 		plane->state->zpos = exynos_plane->config->zpos;
 	}
 }