]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/dbau1x00/dbau1x00.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / dbau1x00 / dbau1x00.c
index cf2f88047d486011096c23a60a1f14ed4597417a..ea7cb744dba9bad959d0eba1d62bb2900c22b942 100644 (file)
 #include <asm/mipsregs.h>
 #include <asm/io.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;
 }
 
 #define BCSR_PCMCIA_PC0DRVEN           0x0010