]> git.sur5r.net Git - u-boot/blobdiff - board/qemu-mips/qemu-mips.c
board_f: Drop return value from initdram()
[u-boot] / board / qemu-mips / qemu-mips.c
index 3cdc91cf4338cd49d8f26c479388f914ee2553a9..2638ea67d3b0a177b8427549242f09fe72c35aa3 100644 (file)
 #include <asm/io.h>
 #include <netdev.h>
 
-phys_size_t initdram(void)
+DECLARE_GLOBAL_DATA_PTR;
+
+int initdram(void)
 {
        /* Sdram is setup by assembler code */
        /* If memory could be changed, we should return the true value here */
-       return MEM_SIZE*1024*1024;
+       gd->ram_size = MEM_SIZE * 1024 * 1024;
+
+       return 0;
 }
 
 int checkboard(void)