diff options
Diffstat (limited to 'drivers/rtc/rtc-mrst.c')
| -rw-r--r-- | drivers/rtc/rtc-mrst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c index 7334c44fa7c3..fcb9de5218b2 100644 --- a/drivers/rtc/rtc-mrst.c +++ b/drivers/rtc/rtc-mrst.c | |||
| @@ -105,7 +105,7 @@ static int mrst_read_time(struct device *dev, struct rtc_time *time) | |||
| 105 | /* Adjust for the 1972/1900 */ | 105 | /* Adjust for the 1972/1900 */ |
| 106 | time->tm_year += 72; | 106 | time->tm_year += 72; |
| 107 | time->tm_mon--; | 107 | time->tm_mon--; |
| 108 | return rtc_valid_tm(time); | 108 | return 0; |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | static int mrst_set_time(struct device *dev, struct rtc_time *time) | 111 | static int mrst_set_time(struct device *dev, struct rtc_time *time) |
| @@ -122,7 +122,7 @@ static int mrst_set_time(struct device *dev, struct rtc_time *time) | |||
| 122 | min = time->tm_min; | 122 | min = time->tm_min; |
| 123 | sec = time->tm_sec; | 123 | sec = time->tm_sec; |
| 124 | 124 | ||
| 125 | if (yrs < 72 || yrs > 138) | 125 | if (yrs < 72 || yrs > 172) |
| 126 | return -EINVAL; | 126 | return -EINVAL; |
| 127 | yrs -= 72; | 127 | yrs -= 72; |
| 128 | 128 | ||
