From: Simon Glass Date: Thu, 13 Oct 2011 14:43:10 +0000 (+0000) Subject: microblaze: Use getenv_ulong() in place of getenv(), strtoul X-Git-Tag: v2011.12-rc1~453 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94e4dae9fa206e94af2d3d426f57f14d2c514dc0;p=u-boot 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 --- 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 */