[ar71xx] parse the board parameter from the command line first
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / prom.c
index 29c6c97cc634a5b8f6336c26092abc22cc7e9e04..03b03047e054e9dda1b6d77e0124b4b75e8bcfcd 100644 (file)
@@ -168,9 +168,9 @@ static void ar71xx_prom_init_generic(void)
        ar71xx_prom_argv = (char **)fw_arg1;
        ar71xx_prom_envp = (char **)fw_arg2;
 
-       p = ar71xx_prom_getenv("board");
+       p = ar71xx_prom_getargv("board");
        if (!p)
-               p = ar71xx_prom_getargv("board");
+               p = ar71xx_prom_getenv("board");
        if (p)
                ar71xx_mach_type = find_board_byname(p);