Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -172,9 +172,8 @@ void board_init (void) ...@@ -172,9 +172,8 @@ void board_init (void)
/* Initialize the console (after the relocation and devices init) */ /* Initialize the console (after the relocation and devices init) */
console_init_r(); console_init_r();
if ((s = getenv ("loadaddr")) != NULL) { /* Initialize from environment */
load_addr = simple_strtoul (s, NULL, 16); load_addr = getenv_ulong("loadaddr", 16, load_addr);
}
#if defined(CONFIG_CMD_NET) #if defined(CONFIG_CMD_NET)
/* IP Address */ /* IP Address */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment