提交 c4f8ef77 编写于 作者: D David S. Miller 提交者: David S. Miller

[SPARC64]: Fix mini RTC driver reading.

Need to subtract 1900 from year and 1 from month before
giving it back to userspace.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8bcd1741
......@@ -1363,6 +1363,8 @@ static inline void mini_get_rtc_time(struct rtc_time *time)
spin_unlock_irqrestore(&rtc_lock, flags);
to_tm(seconds, time);
time->tm_year -= 1900;
time->tm_mon -= 1;
}
static inline int mini_set_rtc_time(struct rtc_time *time)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册