summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-13 14:43:10 +0000
committerWolfgang Denk <wd@denx.de>2011-10-23 23:33:18 +0200
commit94e4dae9fa206e94af2d3d426f57f14d2c514dc0 (patch)
tree15058987bd897308aac847564e92789790cd46a1
parent77b8f2033baf35bbf8803e76227c7242f92a826b (diff)
downloadblackbird-obmc-uboot-94e4dae9fa206e94af2d3d426f57f14d2c514dc0.tar.gz
blackbird-obmc-uboot-94e4dae9fa206e94af2d3d426f57f14d2c514dc0.zip
microblaze: Use getenv_ulong() in place of getenv(), strtoul
This changes the board code to use the new getenv_ulong() function. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/microblaze/lib/board.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index ca5882dd0d..9828b7630f 100644
--- a/arch/microblaze/lib/board.c
+++ b/arch/microblaze/lib/board.c
@@ -172,9 +172,8 @@ void board_init (void)
/* Initialize the console (after the relocation and devices init) */
console_init_r();
- if ((s = getenv ("loadaddr")) != NULL) {
- load_addr = simple_strtoul (s, NULL, 16);
- }
+ /* Initialize from environment */
+ load_addr = getenv_ulong("loadaddr", 16, load_addr);
#if defined(CONFIG_CMD_NET)
/* IP Address */
OpenPOWER on IntegriCloud