]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/mpc8308_p1m/sdram.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / mpc8308_p1m / sdram.c
index 96d60c95eefca9091ec29eff325b81be57b6b982..e0f4671b17eb3784e2e5b4685c3ecf7846600f35 100644 (file)
@@ -61,7 +61,7 @@ static long fixed_sdram(void)
        return get_ram_size(CONFIG_SYS_DDR_SDRAM_BASE, msize);
 }
 
-phys_size_t initdram(void)
+int initdram(void)
 {
        immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize;
@@ -72,6 +72,8 @@ phys_size_t initdram(void)
        /* DDR SDRAM */
        msize = fixed_sdram();
 
-       /* return total bus SDRAM size(bytes)  -- DDR */
-       return msize;
+       /* set total bus SDRAM size(bytes)  -- DDR */
+       gd->ram_size = msize;
+
+       return 0;
 }