diff mbox

[PATCH/RFC,382/390] drm/rcar-du: Prepare/unprepare clock

Message ID 1364525119-31791-383-git-send-email-horms+renesas@verge.net.au (mailing list archive)
State New, archived
Headers show

Commit Message

Simon Horman March 29, 2013, 2:45 a.m. UTC
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Use clk_prepare_enable() and clk_disable_unprepare() to prepare/enable
and disable/unprepare the DU clock.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
(cherry picked from commit 3294cc64275b3cd4f74c149be7165843ffe0128c)

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
index 31ca55e..aa7da6e 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
@@ -233,7 +233,7 @@  static void rcar_du_crtc_start(struct rcar_du_crtc *rcrtc)
 		return;
 
 	/* Enable clocks before accessing the hardware. */
-	clk_enable(rcdu->clock);
+	clk_prepare_enable(rcdu->clock);
 
 	/* Enable extended features */
 	rcar_du_write(rcdu, DEFR, DEFR_CODE | DEFR_DEFE);
@@ -297,7 +297,7 @@  static void rcar_du_crtc_stop(struct rcar_du_crtc *rcrtc)
 
 	rcar_du_start_stop(rcdu, false);
 
-	clk_disable(rcdu->clock);
+	clk_disable_unprepare(rcdu->clock);
 
 	rcrtc->started = false;
 }