diff options
Diffstat (limited to 'arch/sparc64/kernel/time.c')
-rw-r--r-- | arch/sparc64/kernel/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c index d50ebeae144a..7d61f1bfd3d3 100644 --- a/arch/sparc64/kernel/time.c +++ b/arch/sparc64/kernel/time.c | |||
@@ -1363,6 +1363,8 @@ static inline void mini_get_rtc_time(struct rtc_time *time) | |||
1363 | spin_unlock_irqrestore(&rtc_lock, flags); | 1363 | spin_unlock_irqrestore(&rtc_lock, flags); |
1364 | 1364 | ||
1365 | to_tm(seconds, time); | 1365 | to_tm(seconds, time); |
1366 | time->tm_year -= 1900; | ||
1367 | time->tm_mon -= 1; | ||
1366 | } | 1368 | } |
1367 | 1369 | ||
1368 | static inline int mini_set_rtc_time(struct rtc_time *time) | 1370 | static inline int mini_set_rtc_time(struct rtc_time *time) |