Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a3224f1 authored by Thomas Abraham's avatar Thomas Abraham Committed by Linus Torvalds
Browse files

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: default avatarThomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: default avatarVivek Gautam <gautam.vivek@samsung.com>
Reviewed-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e005715e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
}