From: Jaehyoung Choi Date: Sun, 14 Jan 2018 06:48:41 +0000 (+0900) Subject: [COMMON] rtc: rtc-s3c: Fix build error for kernel 4.14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27b33c864a5fa1a0169b55dc49345fadc0c281ac;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] rtc: rtc-s3c: Fix build error for kernel 4.14 Change-Id: I0853f1b233346f3c6f6a11c0888c7acb70fa7741 Signed-off-by: Jaehyoung Choi --- diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index a26d03637d16..687ab8997ec9 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -75,7 +75,7 @@ static int s3c_rtc_enable_clk(struct s3c_rtc *info) int ret = 0; if (info->data->clock_ctrl_disable) - return; + return ret; spin_lock_irqsave(&info->alarm_clk_lock, irq_flags); @@ -614,8 +614,6 @@ err_nortc: if (info->data->needs_src_clk) clk_disable_unprepare(info->rtc_src_clk); -err_src_clk: - clk_disable_unprepare(info->rtc_clk); return ret; }