aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/armada/armada_overlay.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-07-15 18:11:25 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-10-01 14:33:27 +0100
commit583268035825fc5ef0bbc467631fea0358831cbe (patch)
tree26584d63598eb4b0ca053407566a8d6707391201 /drivers/gpu/drm/armada/armada_overlay.c
parentdrm/armada: allocate primary plane ourselves (diff)
downloadlinux-dev-583268035825fc5ef0bbc467631fea0358831cbe.tar.xz
linux-dev-583268035825fc5ef0bbc467631fea0358831cbe.zip
drm/armada: provide a common helper to disable a plane
Provide a common helper to disable either the overlay or the primary plane. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/armada/armada_overlay.c')
-rw-r--r--drivers/gpu/drm/armada/armada_overlay.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/armada/armada_overlay.c b/drivers/gpu/drm/armada/armada_overlay.c
index e5a5b73a08cb..1032f9b3d5f1 100644
--- a/drivers/gpu/drm/armada/armada_overlay.c
+++ b/drivers/gpu/drm/armada/armada_overlay.c
@@ -279,12 +279,7 @@ static int armada_ovl_plane_disable(struct drm_plane *plane)
dplane->ctrl0 = 0;
spin_unlock_irq(&dcrtc->irq_lock);
- /* Power down the Y/U/V FIFOs */
- armada_updatel(CFG_PDWN16x66 | CFG_PDWN32x66, 0,
- dcrtc->base + LCD_SPU_SRAM_PARA1);
-
- if (plane->fb)
- drm_framebuffer_unreference(plane->fb);
+ armada_drm_crtc_plane_disable(dcrtc, plane);
fb = xchg(&dplane->old_fb, NULL);
if (fb)