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
ar71xx_prom_argv = (char **)fw_arg1;
ar71xx_prom_envp = (char **)fw_arg2;
ar71xx_prom_argv = (char **)fw_arg1;
ar71xx_prom_envp = (char **)fw_arg2;
- p = ar71xx_prom_getenv("board");
+ p = ar71xx_prom_getargv("board");
- p = ar71xx_prom_getargv("board");
+ p = ar71xx_prom_getenv("board");
if (p)
ar71xx_mach_type = find_board_byname(p);
if (p)
ar71xx_mach_type = find_board_byname(p);