[U-Boot] [PATCH] arm: Tidy up of PRAM init to use getenv_f()

Simon Glass sjg at chromium.org
Mon Oct 10 22:24:04 CEST 2011


It seems that few people use CONFIG_PRAM on ARM. The getenv_r() function has
been renamed to getenv_f().

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 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 1fe3751..653345f 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -317,7 +317,7 @@ void board_init_f(ulong bootflag)
 	/*
 	 * reserve protected RAM
 	 */
-	i = getenv_r("pram", (char *)tmp, sizeof(tmp));
+	i = getenv_f("pram", (char *)tmp, sizeof(tmp));
 	reg = (i > 0) ? simple_strtoul((const char *)tmp, NULL, 10) :
 		CONFIG_PRAM;
 	addr -= (reg << 10);		/* size is in kB */
-- 
1.7.3.1



More information about the U-Boot mailing list