]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/rtc/m48t35ax.c
LWMON5: POST RTC fix
[people/ms/u-boot.git] / drivers / rtc / m48t35ax.c
index 0a0ffa8aac12fd9844037c78e91f947ea790a853..be29279d0336e3058864c62d4ef27ebbd96a59e9 100644 (file)
@@ -42,7 +42,7 @@ static unsigned bcd2bin(uchar c);
 
 /* ------------------------------------------------------------------------- */
 
-void rtc_get (struct rtc_time *tmp)
+int rtc_get (struct rtc_time *tmp)
 {
        uchar sec, min, hour, cent_day, date, month, year;
        uchar ccr;                      /* Clock control register */
@@ -83,6 +83,8 @@ void rtc_get (struct rtc_time *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,
                tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
+
+       return 0;
 }
 
 void rtc_set (struct rtc_time *tmp)