Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd93a252 authored by Laurent Pinchart's avatar Laurent Pinchart
Browse files

drm: omapdrm: Remove nested PM get/sync when configuring encoders



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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 1cfe19aa
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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();
}

/* -----------------------------------------------------------------------------