powerpc: use time64_t in read_persistent_clock
Looking through the remaining users of the deprecated mktime() function, I found the powerpc rtc handlers, which use it in place of rtc_tm_to_time64(). To clean this up, I'm changing over the read_persistent_clock() function to the read_persistent_clock64() variant, and change all the platform specific handlers along with it. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
2dc20f454d
commit
5bfd643583
@@ -137,7 +137,7 @@ static struct resource rtc_iores = {
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY,
|
||||
};
|
||||
|
||||
unsigned long __init maple_get_boot_time(void)
|
||||
time64_t __init maple_get_boot_time(void)
|
||||
{
|
||||
struct rtc_time tm;
|
||||
struct device_node *rtcs;
|
||||
@@ -170,7 +170,6 @@ unsigned long __init maple_get_boot_time(void)
|
||||
request_resource(&ioport_resource, &rtc_iores);
|
||||
|
||||
maple_get_rtc_time(&tm);
|
||||
return mktime(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday,
|
||||
tm.tm_hour, tm.tm_min, tm.tm_sec);
|
||||
return rtc_tm_to_time64(&tm);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user