drm: omapdrm: Remove nested PM get/sync when configuring encoders
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 27 May 2015 22:58:02 +0000 (01:58 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 12 Jun 2015 19:52:50 +0000 (22:52 +0300)
The omap_crtc_encoder_setup() function is always called with the DSS
enabled. Remove the dispc_runtime_get() and dispc_runtime_put() calls.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c

index aa719ebfe787131c76ce2f6ccf53f971adb22715..16f9c07dc4f6ae755ce39699593ac5642a717a2d 100644 (file)
@@ -374,8 +374,6 @@ static void omap_crtc_encoder_setup(struct drm_crtc *crtc, bool enable)
 
        DBG("%s: enable=%d", omap_crtc->name, enable);
 
-       dispc_runtime_get();
-
        for (i = 0; i < priv->num_encoders; i++) {
                if (priv->encoders[i]->crtc == crtc) {
                        encoder = priv->encoders[i];
@@ -396,8 +394,6 @@ static void omap_crtc_encoder_setup(struct drm_crtc *crtc, bool enable)
                        omap_encoder_set_enabled(encoder, true);
                }
        }
-
-       dispc_runtime_put();
 }
 
 /* -----------------------------------------------------------------------------