summaryrefslogtreecommitdiffstats
path: root/target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2010-02-23 10:43:53 +0000
committerImre Kaloz <kaloz@openwrt.org>2010-02-23 10:43:53 +0000
commit437f2bd5c1001f30bc06ee334f7935d0e4de2551 (patch)
tree1bb5fdbd5fee299548456da1d002b47563a78974 /target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch
parentf53f060299aa3c03f0a476178704e9bd69cb3179 (diff)
downloadmaster-31e0f0ae-437f2bd5c1001f30bc06ee334f7935d0e4de2551.tar.gz
master-31e0f0ae-437f2bd5c1001f30bc06ee334f7935d0e4de2551.tar.bz2
master-31e0f0ae-437f2bd5c1001f30bc06ee334f7935d0e4de2551.zip
add 2.6.32 support
SVN-Revision: 19823
Diffstat (limited to 'target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch')
-rw-r--r--target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch b/target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch
new file mode 100644
index 0000000000..95fa50807b
--- /dev/null
+++ b/target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch
@@ -0,0 +1,13 @@
+--- a/drivers/mtd/devices/ubi32-m25p80.c
++++ b/drivers/mtd/devices/ubi32-m25p80.c
+@@ -630,8 +630,8 @@ static int ubicom32_flash_driver_erase(s
+ /* sanity checks */
+ if (instr->addr + instr->len > flash->mtd.size)
+ return -EINVAL;
+- if ((instr->addr % mtd->erasesize) != 0
+- || (instr->len % mtd->erasesize) != 0) {
++ if (((u32) instr->addr % mtd->erasesize) != 0
++ || ((u32) instr->len % mtd->erasesize) != 0) {
+ return -EINVAL;
+ }
+