From 7ec663a2add15cc9019e0d2ed6aea7168cc882e9 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Thu, 12 Feb 2009 08:08:14 +0000 Subject: [PATCH] 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 --- target/linux/ar71xx/files/arch/mips/ar71xx/prom.c | 4 ++-- 1 file 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);