summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/pl031.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/pl031.c')
-rw-r--r--drivers/rtc/pl031.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/pl031.c b/drivers/rtc/pl031.c
index c4d1259a89..e6c1a6c271 100644
--- a/drivers/rtc/pl031.c
+++ b/drivers/rtc/pl031.c
@@ -97,7 +97,7 @@ int rtc_get(struct rtc_time *tmp)
tim = RTC_READ_REG(RTC_DR);
- to_tm (tim, tmp);
+ rtc_to_tm(tim, tmp);
debug ( "Get DATE: %4d-%02d-%02d (wday=%d) TIME: %2d:%02d:%02d\n",
tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
OpenPOWER on IntegriCloud