mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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>
This commit is contained in:
parent
77b8f2033b
commit
94e4dae9fa
1 changed files with 2 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue