mmc: s3cmci: Move to clk_prepare_enable/clk_disable_unprepare
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 30 Jun 2014 19:11:06 +0000 (22:11 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2014 09:26:12 +0000 (11:26 +0200)
Use clk_prepare_enable/clk_disable_unprepare to make the driver
work properly with common clock framework.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/s3cmci.c

index f23782683a7c223dfa22db288cf308ef8c21ed1b..501ec210780c8369736fa736d236f05826d10f66 100644 (file)
@@ -1787,7 +1787,7 @@ static int s3cmci_probe(struct platform_device *pdev)
                goto probe_free_dma;
        }
 
-       ret = clk_enable(host->clk);
+       ret = clk_prepare_enable(host->clk);
        if (ret) {
                dev_err(&pdev->dev, "failed to enable clock source.\n");
                goto clk_free;
@@ -1845,7 +1845,7 @@ static int s3cmci_probe(struct platform_device *pdev)
        s3cmci_cpufreq_deregister(host);
 
  free_dmabuf:
-       clk_disable(host->clk);
+       clk_disable_unprepare(host->clk);
 
  clk_free:
        clk_put(host->clk);
@@ -1897,7 +1897,7 @@ static void s3cmci_shutdown(struct platform_device *pdev)
        s3cmci_debugfs_remove(host);
        s3cmci_cpufreq_deregister(host);
        mmc_remove_host(mmc);
-       clk_disable(host->clk);
+       clk_disable_unprepare(host->clk);
 }
 
 static int s3cmci_remove(struct platform_device *pdev)