ar71xx: Fix UBIFS work on Mikrotik RB95x devices
[openwrt/staging/hauke.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-rb95x.c
index c2261ab9f121d3ea4052256dc9b184bac9630dd4..e940d6cc119b99ff6a48b7b98b8008043ab9b9ec 100644 (file)
@@ -53,7 +53,7 @@ static struct mtd_partition rb95x_nand_partitions[] = {
                .size   = (4 * 1024 * 1024) - (256 * 1024),
        },
        {
-               .name   = "rootfs",
+               .name   = "ubi",
                .offset = MTDPART_OFS_NXTBLK,
                .size   = MTDPART_SIZ_FULL,
        },
@@ -165,6 +165,8 @@ static int rb95x_nand_scan_fixup(struct mtd_info *mtd)
                chip->ecc.layout = &rb95x_nand_ecclayout;
        }
 
+       chip->options = NAND_NO_SUBPAGE_WRITE;
+
        return 0;
 }