diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-11-26 08:40:46 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-11-26 08:40:46 +0000 |
commit | d39a6db113bc16f395b8cf02d783dea880b94a92 (patch) | |
tree | 6ec610cfc991683b7e93b3ab6b1683de935abe52 /target | |
parent | b2bf46cba3eee6f12dcbb7b756722ac62440e65c (diff) | |
download | master-187ad058-d39a6db113bc16f395b8cf02d783dea880b94a92.tar.gz master-187ad058-d39a6db113bc16f395b8cf02d783dea880b94a92.tar.bz2 master-187ad058-d39a6db113bc16f395b8cf02d783dea880b94a92.zip |
[ar71xx] fix AP83 boot failure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13356 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/prom.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c index cd6f26cdac..ad6a3a49dd 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c @@ -46,6 +46,9 @@ static struct board_rec boards[] __initdata = { }, { .name = "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++) { char *argv = ar71xx_prom_argv[i]; + + if (!argv) + continue; + if (strncmp(name, argv, len) == 0 && (argv)[len] == '=') return argv + len + 1; } |