commit | f441f98f5834a7f9734f6b183b5580f510344a87 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | Sat Mar 10 06:32:00 2018 +0100 |
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | Tue Mar 27 10:45:03 2018 +0200 |
tree | e6378e4672762596c42e285350b24e3bdb2bcb8f | |
parent | 844cba65bf92863ebdb05047eeb843d895d6b7c2 [diff] [blame] |
rtc: mrst: remove artificial limitation The hardware supports years up to 100 so don't limit the year to 2038 artificially. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c index 901a8d1..fcb9de5 100644 --- a/drivers/rtc/rtc-mrst.c +++ b/drivers/rtc/rtc-mrst.c
@@ -122,7 +122,7 @@ min = time->tm_min; sec = time->tm_sec; - if (yrs < 72 || yrs > 138) + if (yrs < 72 || yrs > 172) return -EINVAL; yrs -= 72;