From: Alexandre Belloni Date: Sat, 10 Mar 2018 05:32:00 +0000 (+0100) Subject: rtc: mrst: remove artificial limitation X-Git-Tag: v4.17-rc1~62^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f441f98f5834a7f9734f6b183b5580f510344a87;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c index 901a8d170f689..fcb9de5218b20 100644 --- a/drivers/rtc/rtc-mrst.c +++ b/drivers/rtc/rtc-mrst.c @@ -122,7 +122,7 @@ static int mrst_set_time(struct device *dev, struct rtc_time *time) min = time->tm_min; sec = time->tm_sec; - if (yrs < 72 || yrs > 138) + if (yrs < 72 || yrs > 172) return -EINVAL; yrs -= 72;