[ar71xx] fix AP83 boot failure
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 26 Nov 2008 08:40:46 +0000 (08:40 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 26 Nov 2008 08:40:46 +0000 (08:40 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13356 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/files/arch/mips/ar71xx/prom.c

index cd6f26c..ad6a3a4 100644 (file)
@@ -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;
        }
This page took 0.025509 seconds and 4 git commands to generate.