Openwrt/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
John Crispin a0de18807b ramips: add ralink v3.10 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37331
2013-07-15 10:06:55 +00:00

16 lines
553 B
Diff

Index: linux-3.10.1/drivers/mtd/mtdpart.c
===================================================================
--- linux-3.10.1.orig/drivers/mtd/mtdpart.c 2013-07-15 11:39:25.376669514 +0200
+++ linux-3.10.1/drivers/mtd/mtdpart.c 2013-07-15 11:49:53.040684471 +0200
@@ -807,10 +807,6 @@
return;
len = be32_to_cpu(hdr.size) + 0x40;
- len = mtd_pad_erasesize(master, part->offset, len);
- if (len + master->erasesize > part->mtd.size)
- return;
-
__mtd_add_partition(master, "rootfs", part->offset + len,
part->mtd.size - len, false);
}