]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/rtc/pl031.c
net: e1000: implement eth_write_hwaddr
[people/ms/u-boot.git] / drivers / rtc / pl031.c
index 11cc719828d6ac65499436a26473062b2df03ab5..fc83049ecd2ebcfed6e746a25d8edda92ace3a32 100644 (file)
@@ -72,8 +72,7 @@ int rtc_set(struct rtc_time *tmp)
        }
 
        /* Calculate number of seconds this incoming time represents */
-       tim = mktime(tmp->tm_year, tmp->tm_mon, tmp->tm_mday,
-                       tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
+       tim = rtc_mktime(tmp);
 
        RTC_WRITE_REG(RTC_LR, tim);
 
@@ -97,7 +96,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,