From eed3d11b5ede033ca253bb8825741c4b2b948fb6 Mon Sep 17 00:00:00 2001 From: juhosg Date: Thu, 12 Feb 2009 08:08:14 +0000 Subject: [ar71xx] parse the board parameter from the command line first Signed-off-by: Andrea Tassi and WiFi(ed) - The Embedded Development Team (of Riccardo Coppola , Andrea Tassi and Massimiliano Toce ) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14482 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/prom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target') diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c index 29c6c97cc..03b03047e 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); -- cgit v1.2.3