summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-11-26 08:40:46 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-11-26 08:40:46 +0000
commite648c0ad5d2c04c067c1a92090038bcabc7a04e7 (patch)
tree0aa0424e44cc3b02c2388eebc67f1d2a295cd09c /target/linux/ar71xx
parente87c983c93fe8d382126fff515a11efd88b38460 (diff)
downloadmtk-20170518-e648c0ad5d2c04c067c1a92090038bcabc7a04e7.zip
mtk-20170518-e648c0ad5d2c04c067c1a92090038bcabc7a04e7.tar.gz
mtk-20170518-e648c0ad5d2c04c067c1a92090038bcabc7a04e7.tar.bz2
fix AP83 boot failure
SVN-Revision: 13356
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/prom.c7
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 cd6f26c..ad6a3a4 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;
}