From: Gabor Juhos Date: Thu, 12 Feb 2009 08:08:14 +0000 (+0000) Subject: parse the board parameter from the command line first Signed-off-by: Andrea Tassi... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7ec663a2add15cc9019e0d2ed6aea7168cc882e9;p=openwrt%2Fstaging%2Flynxis%2Fomap.git 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 ) SVN-Revision: 14482 --- 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);