]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/rtc/rtc-s3c.c
drivers/rtc/rtc-s3c.c: use clk_prepare_enable and clk_disable_unprepare
[karo-tx-linux.git] / drivers / rtc / rtc-s3c.c
index 653a4dcbfe7d456d8b10c100c3f79b1cf7e97858..8e96c00936be7805f234f8c8d6d3d91bfc2d2223 100644 (file)
@@ -426,6 +426,7 @@ static int s3c_rtc_remove(struct platform_device *dev)
 
        s3c_rtc_setaie(&dev->dev, 0);
 
+       clk_unprepare(rtc_clk);
        rtc_clk = NULL;
 
        return 0;
@@ -494,7 +495,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       clk_enable(rtc_clk);
+       clk_prepare_enable(rtc_clk);
 
        /* check to see if everything is setup correctly */
 
@@ -573,7 +574,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
 
  err_nortc:
        s3c_rtc_enable(pdev, 0);
-       clk_disable(rtc_clk);
+       clk_disable_unprepare(rtc_clk);
 
        return ret;
 }