make rootfs split/detection more generic - patch can be moved to generic-2.6 after...
[openwrt/openwrt.git] / target / linux / atheros-2.6 / files / drivers / mtd / devices / spiflash.c
index 067f32b3144d2572a8eda12846f4a99e3ee6350e..029f624eb961f084500454eae1f91b9ba23cf67d 100644 (file)
@@ -396,7 +396,7 @@ static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL };
 
 static int spiflash_probe(struct platform_device *pdev)
 {
-       int result = -1;
+       int i, result = -1;
        int index, num_parts;
        struct mtd_info *mtd;