Commit 0193f0c7 authored by Laurent Pinchart's avatar Laurent Pinchart

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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent bec10a2a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment