Skip to contentSkip to conversation

rtc: rtc-s3c: use clk_prepare_enable and clk_disable_unprepare

PATCH New Thomas Abraham 1 participant 1 message Oct 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: rtc-s3c: use clk_prepare_enable and clk_disable_unprepare

Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare calls as required by common clock framework.

---
 drivers/rtc/rtc-s3c.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/rtc/rtc-s3c.c +3 -3
index 77823d2..ff5b928 100644
@@ -520,7 +520,7 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
 		goto err_clk;
 	}
 
-	clk_enable(rtc_clk);
+	clk_prepare_enable(rtc_clk);
 
 	/* check to see if everything is setup correctly */
 
@@ -591,7 +591,7 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
 		goto err_tick_irq;
 	}
 
-	clk_disable(rtc_clk);
+	clk_disable_unprepare(rtc_clk);
 
 	return 0;
 
@@ -604,7 +604,7 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
 
  err_nortc:
 	s3c_rtc_enable(pdev, 0);
-	clk_disable(rtc_clk);
+	clk_disable_unprepare(rtc_clk);
 	clk_put(rtc_clk);
 
  err_clk:
Signature · 1 line
1.7.4.1