summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/imxdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/imxdi.c')
-rw-r--r--drivers/rtc/imxdi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/imxdi.c b/drivers/rtc/imxdi.c
index e89034dc0a..17519ce2c0 100644
--- a/drivers/rtc/imxdi.c
+++ b/drivers/rtc/imxdi.c
@@ -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)
OpenPOWER on IntegriCloud