mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
drivers/rtc/rtc-s3c.c: 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. Signed-off-by: Thomas Abraham <[email protected]> Signed-off-by: Vivek Gautam <[email protected]> Reviewed-by: Sylwester Nawrocki <[email protected]> Reviewed-by: Jingoo Han <[email protected]> Acked-by: Kukjin Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e005715efa
commit
1a3224f141
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue