arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize
authorHeiko Schocher <hs@denx.de>
Thu, 2 Jun 2011 22:11:37 +0000 (22:11 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 3 Sep 2011 20:40:46 +0000 (22:40 +0200)
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Albert Aribaud <albert.u.boot@aribaud.net>

arch/arm/lib/board.c

index 14a56f6..646cf45 100644 (file)
@@ -626,7 +626,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
                pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024;
 #endif
 #endif
-               sprintf((char *)memsz, "%ldk", (bd->bi_memsize / 1024) - pram);
+               sprintf((char *)memsz, "%ldk", (gd->ram_size / 1024) - pram);
                setenv("mem", (char *)memsz);
        }
 #endif