arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Albert Aribaud <albert.u.boot@aribaud.net>
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 14a56f6..646cf45 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -626,7 +626,7 @@
 		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