projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87c983
)
fix AP83 boot failure
author
Gabor Juhos
<juhosg@openwrt.org>
Wed, 26 Nov 2008 08:40:46 +0000
(08:40 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Wed, 26 Nov 2008 08:40:46 +0000
(08:40 +0000)
SVN-Revision: 13356
target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
index cd6f26cdac48724ad53973cf537c07e3f3f768d1..ad6a3a49ddf0d29994d345348e5f07bd5d7e154a 100644
(file)
--- 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;
}