diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-02-12 08:08:14 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-02-12 08:08:14 +0000 |
commit | 71ed79fcafa7b33796a5e86f2ce0d62636cb315f (patch) | |
tree | 14acebea235135ad6b66caaba2828ad9f0017852 /target/linux/ar71xx/files | |
parent | 4e0600cb8f742cb8f3821211e2021d4cf7f0e634 (diff) | |
download | master-187ad058-71ed79fcafa7b33796a5e86f2ce0d62636cb315f.tar.gz master-187ad058-71ed79fcafa7b33796a5e86f2ce0d62636cb315f.tar.bz2 master-187ad058-71ed79fcafa7b33796a5e86f2ce0d62636cb315f.zip |
[ar71xx] 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>)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14482 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/prom.c | 4 |
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); |