X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/49b34728f956238c5fdbec568be0247fb8be95c6..aea832cc6b8f626c9264fc0fd7d294570223b1a2:/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c diff --git a/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c b/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c index aed241b98..a2d30cd0b 100644 --- a/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c +++ b/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c @@ -26,11 +26,12 @@ #include #include #include +#include +#include + #include #include #include -#include -#include #ifndef CONFIG_MTD_PARTITIONS #error Please enable CONFIG_MTD_PARTITIONS @@ -231,9 +232,9 @@ static int ifxmips_mtd_probe(struct platform_device *dev) if (err <= 0) { if (ifxmips_has_brn_block()) { - parts[4].size -= ifxmips_mtd->erasesize; - parts[5].offset = ifxmips_mtd->size - ifxmips_mtd->erasesize; - parts[5].size = ifxmips_mtd->erasesize; + parts[3].size -= ifxmips_mtd->erasesize; + parts[4].offset = ifxmips_mtd->size - ifxmips_mtd->erasesize; + parts[4].size = ifxmips_mtd->erasesize; } else { num_parts--; }