]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/amcc/walnut/walnut.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / amcc / walnut / walnut.c
index ca933d71a659f5b0bb29008c601231a19cc26527..2a2441e101e208192ec88a210220665cf4097d12 100644 (file)
@@ -9,6 +9,8 @@
 #include <asm/processor.h>
 #include <spd_sdram.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int board_early_init_f(void)
 {
        /*-------------------------------------------------------------------------+
@@ -74,7 +76,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;
 }