diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-02-19 23:28:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-02-19 23:28:09 +0000 |
commit | b528d42dcc147b789551290eccb4534767e709eb (patch) | |
tree | 5850914629d29e8f732cc7e681a0fb481d775bd3 /target/linux/atheros-2.6/files | |
parent | 6cb8a1d2b61f918bdfae8c24912aa0a19786474f (diff) | |
download | upstream-b528d42dcc147b789551290eccb4534767e709eb.tar.gz upstream-b528d42dcc147b789551290eccb4534767e709eb.tar.bz2 upstream-b528d42dcc147b789551290eccb4534767e709eb.zip |
make rootfs split/detection more generic - patch can be moved to generic-2.6 after testing on other platforms (especially broadcom)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6328 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros-2.6/files')
-rw-r--r-- | target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.c b/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.c index 32a132a9ea..029f624eb9 100644 --- a/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.c +++ b/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.c @@ -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); - 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); |