summaryrefslogtreecommitdiff
path: root/drivers/rtc/mxsrtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/mxsrtc.c')
-rw-r--r--drivers/rtc/mxsrtc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/mxsrtc.c b/drivers/rtc/mxsrtc.c
index 82c2fbfde0..6e32154f47 100644
--- a/drivers/rtc/mxsrtc.c
+++ b/drivers/rtc/mxsrtc.c
@@ -52,8 +52,7 @@ int rtc_set(struct rtc_time *time)
{
uint32_t secs;
- secs = mktime(time->tm_year, time->tm_mon, time->tm_mday,
- time->tm_hour, time->tm_min, time->tm_sec);
+ secs = rtc_mktime(time);
return mxs_rtc_set_time(secs);
}