From 27b33c864a5fa1a0169b55dc49345fadc0c281ac Mon Sep 17 00:00:00 2001 From: Jaehyoung Choi Date: Sun, 14 Jan 2018 15:48:41 +0900 Subject: [PATCH] [COMMON] rtc: rtc-s3c: Fix build error for kernel 4.14 Change-Id: I0853f1b233346f3c6f6a11c0888c7acb70fa7741 Signed-off-by: Jaehyoung Choi --- drivers/rtc/rtc-s3c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.20.1