]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/amcc/bubinga/bubinga.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / amcc / bubinga / bubinga.c
index e3567173c2aff865c8f92c9467298ae02d89f49d..725b9ca08668617588856cdc3e5425972078dc0b 100644 (file)
@@ -9,6 +9,8 @@
 #include <asm/processor.h>
 #include <asm/io.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 long int spd_sdram(void);
 
 int board_early_init_f(void)
@@ -55,7 +57,9 @@ int checkboard(void)
   initdram() reads EEPROM via I2c. EEPROM contains all of
   the necessary info for SDRAM controller configuration
    ------------------------------------------------------------------------- */
-phys_size_t initdram(void)
+int initdram(void)
 {
-       return spd_sdram();
+       gd->ram_size = spd_sdram();
+
+       return 0;
 }