rtc: starfire: switch to rtc_time64_to_tm
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>
This commit is contained in:
Родитель
166b13325c
Коммит
326bce078a
|
@ -27,7 +27,7 @@ static u32 starfire_get_time(void)
|
||||||
|
|
||||||
static int starfire_read_time(struct device *dev, struct rtc_time *tm)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче