projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dm: rtc: Rename to_tm() to rtc_to_tm() and add error code
[oweals/u-boot.git]
/
drivers
/
rtc
/
at91sam9_rtt.c
diff --git
a/drivers/rtc/at91sam9_rtt.c
b/drivers/rtc/at91sam9_rtt.c
index 714dd2a34f53268687db5b534febe16d3356e6e8..d3cdee04ffc736c42d5580e19e793b3e0c22f775 100644
(file)
--- a/
drivers/rtc/at91sam9_rtt.c
+++ b/
drivers/rtc/at91sam9_rtt.c
@@
-44,7
+44,7
@@
int rtc_get (struct rtc_time *tmp)
} while (tim!=tim2);
off = readl(&gpbr->reg[AT91_GPBR_INDEX_TIMEOFF]);
/* off==0 means time is invalid, but we ignore that */
-
to_tm
(tim+off, tmp);
+
rtc_to_tm
(tim+off, tmp);
return 0;
}