Replace clk_enable/clk_disable with clk_prepare_enable/clk_disable_unprepare
as required by the common clock framework.

Signed-off-by: Sachin Kamat <[email protected]>
---
 drivers/media/platform/exynos-gsc/gsc-core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c 
b/drivers/media/platform/exynos-gsc/gsc-core.c
index bfec9e6..d11668b 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.c
+++ b/drivers/media/platform/exynos-gsc/gsc-core.c
@@ -1009,7 +1009,7 @@ static int gsc_clk_get(struct gsc_dev *gsc)
        if (IS_ERR(gsc->clock))
                goto err_print;
 
-       ret = clk_prepare(gsc->clock);
+       ret = clk_prepare_enable(gsc->clock);
        if (ret < 0) {
                clk_put(gsc->clock);
                gsc->clock = NULL;
@@ -1186,7 +1186,7 @@ static int gsc_runtime_suspend(struct device *dev)
 
        ret = gsc_m2m_suspend(gsc);
        if (!ret)
-               clk_disable(gsc->clock);
+               clk_disable_unprepare(gsc->clock);
 
        pr_debug("gsc%d: state: 0x%lx", gsc->id, gsc->state);
        return ret;
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to