From: Heiko Schocher Date: Thu, 2 Jun 2011 22:11:37 +0000 (+0000) Subject: arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize X-Git-Tag: v2011.09-rc1~68^2~122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2b8f98f885c61f64aacaeb8fc4d247fbb3ae8cd;p=u-boot arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize Signed-off-by: Heiko Schocher cc: Albert Aribaud --- diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 14a56f6f0a..646cf450f7 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -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