make rootfs split/detection more generic - patch can be moved to generic-2.6 after...
[openwrt.git] / target / linux / atheros-2.6 / files / drivers / mtd / devices / spiflash.c
index 32a132a..029f624 100644 (file)
@@ -472,12 +472,6 @@ static int spiflash_probe(struct platform_device *pdev)
 #endif
        /* parse redboot partitions */
        num_parts = parse_mtd_partitions(mtd, part_probe_types, &spidata->parsed_parts, 0);
 #endif
        /* parse redboot partitions */
        num_parts = parse_mtd_partitions(mtd, part_probe_types, &spidata->parsed_parts, 0);
-       for (i = 0; i < num_parts; i++) {
-               if (!strcmp(spidata->parsed_parts[i].name, ROOTFS_NAME)) {
-                       /* create the root device */
-                       ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, i);
-               }
-       }
 
 #ifdef SPIFLASH_DEBUG
        printk (KERN_DEBUG "Found %d partitions\n", num_parts);
 
 #ifdef SPIFLASH_DEBUG
        printk (KERN_DEBUG "Found %d partitions\n", num_parts);