Skip to content

Commit

Permalink
rtc: starfire: switch to rtc_time64_to_tm
Browse files Browse the repository at this point in the history
Call the 64bit version of rtc_tm time conversion.

Link: https://lore.kernel.org/r/20200306005910.38939-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
  • Loading branch information
Alexandre Belloni committed Mar 16, 2020
1 parent 166b133 commit 326bce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-starfire.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static u32 starfire_get_time(void)

static int starfire_read_time(struct device *dev, struct rtc_time *tm)
{
rtc_time_to_tm(starfire_get_time(), tm);
rtc_time64_to_tm(starfire_get_time(), tm);
return 0;
}

Expand Down

0 comments on commit 326bce0

Please sign in to comment.