summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/ftrtc010.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/ftrtc010.c')
-rw-r--r--drivers/rtc/ftrtc010.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/ftrtc010.c b/drivers/rtc/ftrtc010.c
index 3c5d955943..7d0cfb3ba8 100644
--- a/drivers/rtc/ftrtc010.c
+++ b/drivers/rtc/ftrtc010.c
@@ -104,8 +104,7 @@ int rtc_set(struct rtc_time *tmp)
tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
- new = mktime(tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_hour,
- tmp->tm_min, tmp->tm_sec);
+ new = rtc_mktime(tmp);
now = ftrtc010_time();
OpenPOWER on IntegriCloud