author | Johannes Weiner
<jw@emlix.com> 2009-12-01 21:17:48 UTC |
committer | Linus Torvalds
<torvalds@linux-foundation.org> 2009-12-02 00:32:20 UTC |
parent | 0a1f127a0594d62cb23c26732686d0e2b097b264 |
drivers/rtc/rtc-x1205.c | +1 | -1 |
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c index 310c10795e9..cc9ba47b215 100644 --- a/drivers/rtc/rtc-x1205.c +++ b/drivers/rtc/rtc-x1205.c @@ -195,7 +195,7 @@ static int x1205_set_datetime(struct i2c_client *client, struct rtc_time *tm, /* year, since the rtc epoch*/ buf[CCR_YEAR] = bin2bcd(tm->tm_year % 100); buf[CCR_WDAY] = tm->tm_wday & 0x07; - buf[CCR_Y2K] = bin2bcd(tm->tm_year / 100); + buf[CCR_Y2K] = bin2bcd((tm->tm_year + 1900) / 100); } /* If writing alarm registers, set compare bits on registers 0-4 */