]> git.sur5r.net Git - u-boot/blobdiff - drivers/rtc/imxdi.c
usb: dwc3: Add DWC3 controller driver support
[u-boot] / drivers / rtc / imxdi.c
index e89034dc0a80c5b7b35ccb47f1c24c5236e9fd81..17519ce2c057d7ee66077ba637124ff8c228d460 100644 (file)
@@ -209,8 +209,7 @@ int rtc_set(struct rtc_time *tmp)
                        goto err;
        }
 
-       now = mktime(tmp->tm_year, tmp->tm_mon, tmp->tm_mday,
-                    tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
+       now = rtc_mktime(tmp);
        /* zero the fractional part first */
        rc = DI_WRITE_WAIT(0, dtclr);
        if (rc == 0)