aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-06-29 12:52:42 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-09-15 11:26:50 -0400
commitf8e140698234dae3a4ea7b971e7bf63a3e0c987a (patch)
tree13ca9d94bc1d6d60a3a5bbf388d1786ee109d376
parent7c8f7e1abc75b853adf60d8ee0a589e058bcdb6b (diff)
drm/armada: use drm_plane_force_disable() to disable the overlay plane
Use drm_plane_force_disable() to disable the overlay plane on a mode_set rather than coding this ourselves. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--drivers/gpu/drm/armada/armada_crtc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c
index 418594b19d1d..bbf5ff785cd2 100644
--- a/drivers/gpu/drm/armada/armada_crtc.c
+++ b/drivers/gpu/drm/armada/armada_crtc.c
@@ -348,17 +348,11 @@ static void armada_drm_crtc_prepare(struct drm_crtc *crtc)
348 /* 348 /*
349 * If we have an overlay plane associated with this CRTC, disable 349 * If we have an overlay plane associated with this CRTC, disable
350 * it before the modeset to avoid its coordinates being outside 350 * it before the modeset to avoid its coordinates being outside
351 * the new mode parameters. DRM doesn't provide help with this. 351 * the new mode parameters.
352 */ 352 */
353 plane = dcrtc->plane; 353 plane = dcrtc->plane;
354 if (plane) { 354 if (plane)
355 struct drm_framebuffer *fb = plane->fb; 355 drm_plane_force_disable(plane);
356
357 plane->funcs->disable_plane(plane);
358 plane->fb = NULL;
359 plane->crtc = NULL;
360 drm_framebuffer_unreference(fb);
361 }
362} 356}
363 357
364/* The mode_config.mutex will be held for this call */ 358/* The mode_config.mutex will be held for this call */