]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/rtc/mx27rtc.c
dm: rtc: Rename to_tm() to rtc_to_tm() and add error code
[karo-tx-uboot.git] / drivers / rtc / mx27rtc.c
index ae6595b86037744f2153051410c6d4c215132add..7ba74d3b110436d154499b2bb89ed7b42f025170 100644 (file)
@@ -30,7 +30,7 @@ int rtc_get(struct rtc_time *time)
 
        sec += min * 60 + hour * 3600 + day * 24 * 3600;
 
-       to_tm(sec, time);
+       rtc_to_tm(sec, time);
 
        return 0;
 }