aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx-2.6/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-05-14 13:45:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-05-14 13:45:41 +0000
commit8b9bb09c2f0097ad487d768fcd435ae698ee2dec (patch)
tree96876773db961d0956b8e466463ef909e78df8f0 /target/linux/brcm47xx-2.6/files
parente7d7f7e2d80fdae95d70faebb6b3c706f129df7c (diff)
downloadupstream-8b9bb09c2f0097ad487d768fcd435ae698ee2dec.tar.gz
upstream-8b9bb09c2f0097ad487d768fcd435ae698ee2dec.tar.bz2
upstream-8b9bb09c2f0097ad487d768fcd435ae698ee2dec.zip
brcm47xx-2.6: fix squashfs image partitioning problem
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7224 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx-2.6/files')
-rw-r--r--target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c b/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c
index e01654ca0b..8d4ebe42d8 100644
--- a/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c
+++ b/target/linux/brcm47xx-2.6/files/drivers/mtd/maps/bcm47xx-flash.c
@@ -335,10 +335,8 @@ init_mtd_partitions(struct mtd_info *mtd, size_t size)
}
/* find and size rootfs */
- if (find_root(mtd,size,&bcm947xx_parts[2])==0) {
- bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset -
- bcm947xx_parts[3].size;
- }
+ find_root(mtd,size,&bcm947xx_parts[2]);
+ bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset - bcm947xx_parts[3].size;
return bcm947xx_parts;
}