]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/zimage.c
env: Rename getenv/_f() to env_get()
[u-boot] / arch / x86 / lib / zimage.c
index aafbeb01f907ea4d49a9f343085b6d3e9f491d1b..00172dc7c130180fbd5062a791975f9419c23adb 100644 (file)
@@ -48,15 +48,15 @@ static void build_command_line(char *command_line, int auto_boot)
 
        command_line[0] = '\0';
 
-       env_command_line =  getenv("bootargs");
+       env_command_line =  env_get("bootargs");
 
        /* set console= argument if we use a serial console */
        if (!strstr(env_command_line, "console=")) {
-               if (!strcmp(getenv("stdout"), "serial")) {
+               if (!strcmp(env_get("stdout"), "serial")) {
 
                        /* We seem to use serial console */
                        sprintf(command_line, "console=ttyS0,%s ",
-                               getenv("baudrate"));
+                               env_get("baudrate"));
                }
        }
 
@@ -285,7 +285,7 @@ int do_zboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
                /* argv[1] holds the address of the bzImage */
                s = argv[1];
        } else {
-               s = getenv("fileaddr");
+               s = env_get("fileaddr");
        }
 
        if (s)