rtc: s3c: add missing clk control
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 11 Aug 2015 07:15:53 +0000 (16:15 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:50:29 +0000 (13:50 +0900)
commit1c6a7b192d71087553e8ef7969207f08b0ca331e
treeb3f4a60f993fa88f5f9873676fa8eb3b7c2435db
parent1bbedf11e811ab20b412c30aa6d100bdaf0e8521
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.

Change-Id: Ia338db2dd1be2d9fc21d3455f91fba1dbff01a89
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
drivers/rtc/rtc-s3c.c