summaryrefslogtreecommitdiff
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
commitd662510eea9dc09634413b3355b14498024567cb (patch)
tree20089a01b9ce55f2b36d74a650db7001b86e7cae
parent7da3a7a2b46b94d7c326ff5ba571ad739043131b (diff)
downloadmtk-20170518-d662510eea9dc09634413b3355b14498024567cb.zip
mtk-20170518-d662510eea9dc09634413b3355b14498024567cb.tar.gz
mtk-20170518-d662510eea9dc09634413b3355b14498024567cb.tar.bz2
brcm47xx-2.6: fix squashfs image partitioning problem
SVN-Revision: 7224
-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 e01654c..8d4ebe4 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;
}