Commit 94e4dae9 authored by Simon Glass's avatar Simon Glass Committed by Wolfgang Denk
Browse files

microblaze: Use getenv_ulong() in place of getenv(), strtoul



This changes the board code to use the new getenv_ulong() function.
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 77b8f203
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment