aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit@wsystem.com>2016-07-21 06:41:28 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-07-28 03:59:33 -0400
commit96acb25c50e77355673b89765b96bd764abf487d (patch)
tree2b298b6295be7604bce630cbc7f418e947a0d8f8 /drivers/rtc
parent34166a00ecdaaebce8bee65877ee54e89c4ec43d (diff)
rtc: rv8803: Remove the check for valid time
The RTC core always calls rtc_valid_tm() after ->read_time() in case of success (in __rtc_read_time()), so do not call it twice. Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-rv8803.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c
index 05c79c38689d..e740c8351659 100644
--- a/drivers/rtc/rtc-rv8803.c
+++ b/drivers/rtc/rtc-rv8803.c
@@ -150,7 +150,7 @@ static int rv8803_get_time(struct device *dev, struct rtc_time *tm)
150 tm->tm_mon = bcd2bin(date[RV8803_MONTH] & 0x1f) - 1; 150 tm->tm_mon = bcd2bin(date[RV8803_MONTH] & 0x1f) - 1;
151 tm->tm_year = bcd2bin(date[RV8803_YEAR]) + 100; 151 tm->tm_year = bcd2bin(date[RV8803_YEAR]) + 100;
152 152
153 return rtc_valid_tm(tm); 153 return 0;
154} 154}
155 155
156static int rv8803_set_time(struct device *dev, struct rtc_time *tm) 156static int rv8803_set_time(struct device *dev, struct rtc_time *tm)