rtc: s3c: add missing clk control
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 11 Aug 2015 11:28:19 +0000 (20:28 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:13 +0000 (13:19 +0200)
commit7f23a93661eb5caa373f75a145cec14331a8caaa
treef2acdd2523cc889cc7e0c778addeccc8fab787c8
parent1fb1c35f56bb6ab4a65920c648154b0f78f634a5
rtc: s3c: add missing clk control

It's missed to call clk_unprepare() about info->rtc_src_clk in
s3c_rtc_remove and to call clk_disable_unprepare about info->rtc_clk in
error routine of s3c_rtc_probe.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-s3c.c