aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_crtc.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-04-15 21:51:45 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-06-12 22:52:49 +0300
commit0193f0c74445ab0da0b8870c18ea5ef071fa1ec1 (patch)
treed84f7b5339529bc4be1d5c761459312fd6296c26 /drivers/gpu/drm/omapdrm/omap_crtc.c
parentdrm: omapdrm: Make the omap_crtc_flush function static (diff)
downloadlinux-dev-0193f0c74445ab0da0b8870c18ea5ef071fa1ec1.tar.xz
linux-dev-0193f0c74445ab0da0b8870c18ea5ef071fa1ec1.zip
drm: omapdrm: Don't get/put dispc in omap_crtc_flush()
The omap_crtc_flush() function is always called with a reference to the dispc held. Remove unnecessary calls to dispc_runtime_get() and dispc_runtime_put(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_crtc.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_crtc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/drm/omapdrm/omap_crtc.c
index 96ba21509607..993bd15ecfbd 100644
--- a/drivers/gpu/drm/omapdrm/omap_crtc.c
+++ b/drivers/gpu/drm/omapdrm/omap_crtc.c
@@ -368,8 +368,6 @@ static int omap_crtc_flush(struct drm_crtc *crtc)
WARN_ON(!drm_modeset_is_locked(&crtc->mutex));
WARN_ON(omap_crtc->vblank_irq.registered);
- dispc_runtime_get();
-
if (dispc_mgr_is_enabled(omap_crtc->channel)) {
dispc_mgr_go(omap_crtc->channel);
omap_irq_register(crtc->dev, &omap_crtc->vblank_irq);
@@ -379,8 +377,6 @@ static int omap_crtc_flush(struct drm_crtc *crtc)
reinit_completion(&omap_crtc->completion);
}
- dispc_runtime_put();
-
return 0;
}