diff options
Diffstat (limited to 'drivers/rtc/mk48t59.c')
-rw-r--r-- | drivers/rtc/mk48t59.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/rtc/mk48t59.c b/drivers/rtc/mk48t59.c index 918c291..dabf322 100644 --- a/drivers/rtc/mk48t59.c +++ b/drivers/rtc/mk48t59.c @@ -185,7 +185,7 @@ int rtc_get (struct rtc_time *tmp) return 0; } -void rtc_set (struct rtc_time *tmp) +int rtc_set (struct rtc_time *tmp) { 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 */ + + return 0; } void rtc_reset (void) |