]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cray/L1/L1.c
rtc: allow rtc_set to return an error and use it in cmd_date
[karo-tx-uboot.git] / board / cray / L1 / L1.c
index 77f7f48a6ecb3f2a9234783ec65538d50f87f576..49a9e5e11d0d97fe309f26fb85a1f426712f6f07 100644 (file)
@@ -170,20 +170,20 @@ int misc_init_r (void)
 }
 
 /* ------------------------------------------------------------------------- */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (L1_MEMSIZE);
 }
 
 /* ------------------------------------------------------------------------- */
 /* stubs so we can print dates w/o any nvram RTC.*/
-void rtc_get (struct rtc_time *tmp)
+int rtc_get (struct rtc_time *tmp)
 {
-       return;
+       return 0;
 }
-void rtc_set (struct rtc_time *tmp)
+int rtc_set (struct rtc_time *tmp)
 {
-       return;
+       return 0;
 }
 void rtc_reset (void)
 {