Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4f8ef77 authored by David S. Miller's avatar David S. Miller Committed by David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 8bcd1741
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)