]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/rtc/ftrtc010.c
dm: rtc: Rename to_tm() to rtc_to_tm() and add error code
[karo-tx-uboot.git] / drivers / rtc / ftrtc010.c
index 713dad274f1cb5e938e613d72b5118864b2a66f3..3c5d95594390eef7b20526c03d069ec1f45aa375 100644 (file)
@@ -86,7 +86,7 @@ int rtc_get(struct rtc_time *tmp)
        now = ftrtc010_time() + readl(&rtc->record);
 #endif
 
-       to_tm(now, tmp);
+       rtc_to_tm(now, tmp);
 
        return 0;
 }