]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/v38b/v38b.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / v38b / v38b.c
index 20490a31570efa9aa97228134cb7ea4b4161a633..c271fb587344737129c0da942a71d4216a2d879b 100644 (file)
@@ -13,6 +13,7 @@
 #include <net.h>
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
 
 #ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start(int hi_addr)
@@ -56,7 +57,7 @@ static void sdram_start(int hi_addr)
 #endif /* !CONFIG_SYS_RAMBOOT */
 
 
-phys_size_t initdram(void)
+int initdram(void)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
@@ -166,7 +167,9 @@ phys_size_t initdram(void)
                __asm__ volatile ("sync");
        }
 
-       return dramsize + dramsize2;
+       gd->ram_size = dramsize + dramsize2;
+
+       return 0;
 }