mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
[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: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8bcd174116
commit
c4f8ef77f9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user