aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-07-15 10:06:55 +0000
committerJohn Crispin <blogic@openwrt.org>2013-07-15 10:06:55 +0000
commit0b4bd54afbc7e56194c7974e3cc282dbd0862953 (patch)
treefaa96127d83945d5237ce1c294b2316754727325 /target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
parentdfe23e06f6f54927522d5b4bac6d2ac647bf0c23 (diff)
downloadmaster-187ad058-0b4bd54afbc7e56194c7974e3cc282dbd0862953.tar.gz
master-187ad058-0b4bd54afbc7e56194c7974e3cc282dbd0862953.tar.bz2
master-187ad058-0b4bd54afbc7e56194c7974e3cc282dbd0862953.zip
ramips: add ralink v3.10 support
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37331 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch')
-rw-r--r--target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch b/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
new file mode 100644
index 0000000000..b08fb1dad1
--- /dev/null
+++ b/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
@@ -0,0 +1,15 @@
+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);
+ }