summaryrefslogtreecommitdiff
path: root/arch/microblaze
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze')
-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 ca5882dd0d8..9828b7630f9 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 */