aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-12 08:08:14 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-12 08:08:14 +0000
commit7ec663a2add15cc9019e0d2ed6aea7168cc882e9 (patch)
treed76e596f3ea0f37e72b19081065f1babd524601a /target
parentdf77d3b06d061404cf3210c4da185b65f77e42e6 (diff)
downloadupstream-7ec663a2add15cc9019e0d2ed6aea7168cc882e9.tar.gz
upstream-7ec663a2add15cc9019e0d2ed6aea7168cc882e9.tar.bz2
upstream-7ec663a2add15cc9019e0d2ed6aea7168cc882e9.zip
parse the board parameter from the command line first Signed-off-by: Andrea Tassi <andrea.tassi at gmail.com> and WiFi(ed) - The Embedded Development Team (of Riccardo Coppola <coppola.riccardo at gmail.com>, Andrea Tassi <andrea.tassi at gmail.com> and Massimiliano Toce <massimiliano.toce at gmail.com>)
SVN-Revision: 14482
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/prom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
index 29c6c97cc6..03b03047e0 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
@@ -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);