brcm47xx-2.6: fix squashfs image partitioning problem

SVN-Revision: 7224
owl
Felix Fietkau 2007-05-14 13:45:41 +00:00
parent 7da3a7a2b4
commit d662510eea
1 changed files with 2 additions and 4 deletions

View File

@ -335,10 +335,8 @@ init_mtd_partitions(struct mtd_info *mtd, size_t size)
} }
/* find and size rootfs */ /* find and size rootfs */
if (find_root(mtd,size,&bcm947xx_parts[2])==0) { find_root(mtd,size,&bcm947xx_parts[2]);
bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset - bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset - bcm947xx_parts[3].size;
bcm947xx_parts[3].size;
}
return bcm947xx_parts; return bcm947xx_parts;
} }