projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fsl_elbc_nand: ecclayout cleanups
[oweals/u-boot.git]
/
drivers
/
rtc
/
mk48t59.c
diff --git
a/drivers/rtc/mk48t59.c
b/drivers/rtc/mk48t59.c
index 918c291a0aede7409e0ceeb5327c51cac926133f..dabf3222b8461114908a84a2a562e811ea2976de 100644
(file)
--- a/
drivers/rtc/mk48t59.c
+++ b/
drivers/rtc/mk48t59.c
@@
-185,7
+185,7
@@
int rtc_get (struct rtc_time *tmp)
return 0;
}
return 0;
}
-
void
rtc_set (struct rtc_time *tmp)
+
int
rtc_set (struct rtc_time *tmp)
{
uchar save_ctrl_a;
{
uchar save_ctrl_a;
@@
-210,6
+210,8
@@
void rtc_set (struct rtc_time *tmp)
save_ctrl_a &= ~RTC_CA_WRITE;
rtc_write(RTC_CONTROLA, save_ctrl_a); /* enables the RTC to update the regs */
save_ctrl_a &= ~RTC_CA_WRITE;
rtc_write(RTC_CONTROLA, save_ctrl_a); /* enables the RTC to update the regs */
+
+ return 0;
}
void rtc_reset (void)
}
void rtc_reset (void)