diff options
author | Heiko Schocher <hs@denx.de> | 2011-06-02 22:11:37 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-03 22:40:46 +0200 |
commit | b2b8f98f885c61f64aacaeb8fc4d247fbb3ae8cd (patch) | |
tree | dbcf420984abe9bea464e84e160e6a93757dcc88 /arch/arm/lib/board.c | |
parent | 8b5a4bcaa06edc7161fa380a674a891ea0631645 (diff) | |
download | u-boot-imx-b2b8f98f885c61f64aacaeb8fc4d247fbb3ae8cd.zip u-boot-imx-b2b8f98f885c61f64aacaeb8fc4d247fbb3ae8cd.tar.gz u-boot-imx-b2b8f98f885c61f64aacaeb8fc4d247fbb3ae8cd.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/lib/board.c')
-rw-r--r-- | arch/arm/lib/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 |