]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/rtc/bfin_rtc.c
karo: fdt: fix panel-dpi support
[karo-tx-uboot.git] / drivers / rtc / bfin_rtc.c
index 4cf2d834b219683c1839a4d51a79f5b71641657b..a079a1d472365c95e72e5d00f2d216d0aeb6c9f1 100644 (file)
@@ -67,8 +67,7 @@ int rtc_set(struct rtc_time *tmp)
        wait_for_complete();
 
        /* Calculate number of seconds this incoming time represents */
-       remain = mktime(tmp->tm_year, tmp->tm_mon, tmp->tm_mday,
-                       tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
+       remain = rtc_mktime(tmp);
 
        /* Figure out how many days since epoch */
        days = remain / NUM_SECS_IN_DAY;
@@ -114,7 +113,7 @@ int rtc_get(struct rtc_time *tmp)
 
        /* Calculate the total number of seconds since epoch */
        time_in_sec = (tm_sec) + MIN_TO_SECS(tm_min) + HRS_TO_SECS(tm_hr) + DAYS_TO_SECS(tm_day);
-       to_tm(time_in_sec, tmp);
+       rtc_to_tm(time_in_sec, tmp);
 
        return 0;
 }