diff options
author | John Crispin <blogic@openwrt.org> | 2013-08-14 18:15:15 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-08-14 18:15:15 +0000 |
commit | b9aed7de867a25b5b25ec73107aad58694920dab (patch) | |
tree | d43e79ac4ba86ff1867147c7e55ff19ace92cb9a /target/linux/ramips/patches-3.10/0204-owrt-mtd-split-remove-padding.patch | |
parent | 4e0f16aad4b317d3625bba23334f44053672cf43 (diff) | |
download | upstream-b9aed7de867a25b5b25ec73107aad58694920dab.tar.gz upstream-b9aed7de867a25b5b25ec73107aad58694920dab.tar.bz2 upstream-b9aed7de867a25b5b25ec73107aad58694920dab.zip |
ramips: update v3.10 patches
Sync the patches with those sent upstream for v3.12.
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37778 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.10/0204-owrt-mtd-split-remove-padding.patch')
-rw-r--r-- | target/linux/ramips/patches-3.10/0204-owrt-mtd-split-remove-padding.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.10/0204-owrt-mtd-split-remove-padding.patch b/target/linux/ramips/patches-3.10/0204-owrt-mtd-split-remove-padding.patch new file mode 100644 index 0000000000..f7da13a6d8 --- /dev/null +++ b/target/linux/ramips/patches-3.10/0204-owrt-mtd-split-remove-padding.patch @@ -0,0 +1,13 @@ +--- a/drivers/mtd/mtdpart.c ++++ b/drivers/mtd/mtdpart.c +@@ -807,10 +807,6 @@ static void split_uimage(struct mtd_info + 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); + } |