]> git.sur5r.net Git - u-boot/blobdiff - drivers/rtc/pl031.c
dm: rtc: Rename mktime() and reduce the number of parameters
[u-boot] / drivers / rtc / pl031.c
index e6c1a6c27100e8c4904d8a6932bdd42c3d6a6a4e..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);