]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/rtc/pl031.c
dm: rtc: Rename to_tm() to rtc_to_tm() and add error code
[karo-tx-uboot.git] / drivers / rtc / pl031.c
index c4d1259a898d2e885eea0d76a6f16ad1c07e7434..e6c1a6c27100e8c4904d8a6932bdd42c3d6a6a4e 100644 (file)
@@ -97,7 +97,7 @@ int rtc_get(struct rtc_time *tmp)
 
        tim = RTC_READ_REG(RTC_DR);
 
-       to_tm (tim, tmp);
+       rtc_to_tm(tim, tmp);
 
        debug ( "Get DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n",
                tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,