fix AP83 boot failure

SVN-Revision: 13356
owl
Gabor Juhos 2008-11-26 08:40:46 +00:00
parent e87c983c93
commit e648c0ad5d
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,9 @@ static struct board_rec boards[] __initdata = {
}, { }, {
.name = "AW-NR580", .name = "AW-NR580",
.mach_type = MACH_AR71XX_AW_NR580, .mach_type = MACH_AR71XX_AW_NR580,
}, {
.name = "AP83",
.mach_type = MACH_AR71XX_AP83,
} }
}; };
@ -59,6 +62,10 @@ static __init char *ar71xx_prom_getargv(const char *name)
for (i = 0; i < ar71xx_prom_argc; i++) { for (i = 0; i < ar71xx_prom_argc; i++) {
char *argv = ar71xx_prom_argv[i]; char *argv = ar71xx_prom_argv[i];
if (!argv)
continue;
if (strncmp(name, argv, len) == 0 && (argv)[len] == '=') if (strncmp(name, argv, len) == 0 && (argv)[len] == '=')
return argv + len + 1; return argv + len + 1;
} }