summaryrefslogtreecommitdiff
path: root/drivers/rtc/mc13xxx-rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/mc13xxx-rtc.c')
-rw-r--r--drivers/rtc/mc13xxx-rtc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/mc13xxx-rtc.c b/drivers/rtc/mc13xxx-rtc.c
index 30c4e662dd..3e463368b0 100644
--- a/drivers/rtc/mc13xxx-rtc.c
+++ b/drivers/rtc/mc13xxx-rtc.c
@@ -51,8 +51,7 @@ int rtc_set(struct rtc_time *rtc)
if (!p)
return -1;
- time = mktime(rtc->tm_year, rtc->tm_mon, rtc->tm_mday,
- rtc->tm_hour, rtc->tm_min, rtc->tm_sec);
+ time = rtc_mktime(rtc);
day = time / 86400;
time %= 86400;