Patchwork [1/2] rtc: rtc-max8925: fix max8925_rtc_read_alarm return value error

login
register
mail settings
Submitter Haojian Zhuang
Date Jan. 4, 2012, 7:12 a.m.
Message ID <1325661175-7876-1-git-send-email-haojian.zhuang@marvell.com>
Download mbox | patch
Permalink /patch/134221/
State New
Headers show

Comments

Haojian Zhuang - Jan. 4, 2012, 7:12 a.m.
From: Kevin Liu <kliu5@marvell.com>

max8925_rtc_read_alarm should always return 0 with success

Signed-off-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
---
 drivers/rtc/rtc-max8925.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-max8925.c b/drivers/rtc/rtc-max8925.c
index 3bc046f..d93bd40 100644
--- a/drivers/rtc/rtc-max8925.c
+++ b/drivers/rtc/rtc-max8925.c
@@ -204,6 +204,7 @@  static int max8925_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
 		alrm->pending = 1;
 	else
 		alrm->pending = 0;
+	return 0;
 out:
 	return ret;
 }