kernel: don't switch allocate_partition to use mtd_roundup_to_eb
[openwrt/openwrt.git] / target / linux / generic / patches-4.9 / 411-mtd-partial_eraseblock_write.patch
index 69519732e1223f095f21e65cd25eec09467c1219..ced1f615cab72a121111b00a66e200b07e4ddc56 100644 (file)
@@ -97,7 +97,7 @@
  
                if (instr->fail_addr != MTD_FAIL_ADDR_UNKNOWN)
                        instr->fail_addr -= part->offset;
-@@ -562,17 +631,20 @@ static struct mtd_part *allocate_partiti
+@@ -564,17 +633,20 @@ static struct mtd_part *allocate_partiti
        if ((slave->mtd.flags & MTD_WRITEABLE) &&
            mtd_mod_by_eb(slave->offset, &slave->mtd)) {
                /* Doesn't start on a boundary of major erase size */