提交 0b102aaa 编写于 作者: S Seung-Woo Kim 提交者: Inki Dae

drm/exynos: gsc: prepare and unprepare gsc clock

Ths patch changes the clk_enable and clk_disable call in gsc driver
into clk_prepare_enable and clk_disable_unprepare.
Signed-off-by: NSeung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: NInki Dae <inki.dae@samsung.com>
上级 25e9092a
...@@ -1215,10 +1215,10 @@ static int gsc_clk_ctrl(struct gsc_context *ctx, bool enable) ...@@ -1215,10 +1215,10 @@ static int gsc_clk_ctrl(struct gsc_context *ctx, bool enable)
DRM_DEBUG_KMS("enable[%d]\n", enable); DRM_DEBUG_KMS("enable[%d]\n", enable);
if (enable) { if (enable) {
clk_enable(ctx->gsc_clk); clk_prepare_enable(ctx->gsc_clk);
ctx->suspended = false; ctx->suspended = false;
} else { } else {
clk_disable(ctx->gsc_clk); clk_disable_unprepare(ctx->gsc_clk);
ctx->suspended = true; ctx->suspended = true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册