summaryrefslogtreecommitdiff
path: root/arch/nios2/lib/bootm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/lib/bootm.c')
-rw-r--r--arch/nios2/lib/bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/lib/bootm.c b/arch/nios2/lib/bootm.c
index 4e5c269193d..00ade2c5731 100644
--- a/arch/nios2/lib/bootm.c
+++ b/arch/nios2/lib/bootm.c
@@ -12,7 +12,7 @@
int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
{
void (*kernel)(int, int, int, char *) = (void *)images->ep;
- char *commandline = getenv("bootargs");
+ char *commandline = env_get("bootargs");
ulong initrd_start = images->rd_start;
ulong initrd_end = images->rd_end;
char *of_flat_tree = NULL;