]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/bmw/m48t59y.c
imported Freescale specific U-Boot additions for i.MX28,... release L2.6.31_10.08.01
[karo-tx-uboot.git] / board / bmw / m48t59y.c
index d72c861a13d73c7fd7f71372e85b643eb429de29..4e83b9076e3645fd8da3ebccb50d9ae94adeb5a1 100755 (executable)
@@ -278,7 +278,7 @@ void m48_watchdog_arm(int usec)
 /*
  * U-Boot RTC support.
  */
-void
+int
 rtc_get( struct rtc_time *tmp )
 {
        m48_tod_get(&tmp->tm_year,
@@ -295,10 +295,11 @@ rtc_get( struct rtc_time *tmp )
                tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
                tmp->tm_hour, tmp->tm_min, tmp->tm_sec );
 #endif
+
+       return 0;
 }
 
-void
-rtc_set( struct rtc_time *tmp )
+int rtc_set( struct rtc_time *tmp )
 {
        m48_tod_set(tmp->tm_year,               /* 1980-2079 */
                    tmp->tm_mon,                /* 01-12 */
@@ -313,6 +314,7 @@ rtc_set( struct rtc_time *tmp )
                tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
 #endif
 
+       return 0;
 }
 
 void