diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2010-02-23 10:43:53 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2010-02-23 10:43:53 +0000 |
commit | 8a3e589e74eecb13cc289a6c6410f2112b85011b (patch) | |
tree | 3eac3e565ec64f61d64b536e14d9a001e2d02405 /target/linux/ubicom32/patches-2.6.32/130-flash_driver_fix.patch | |
parent | 38ccf4d8f308b4d9805a3c3dd6015df71b7473d0 (diff) | |
download | master-187ad058-8a3e589e74eecb13cc289a6c6410f2112b85011b.tar.gz master-187ad058-8a3e589e74eecb13cc289a6c6410f2112b85011b.tar.bz2 master-187ad058-8a3e589e74eecb13cc289a6c6410f2112b85011b.zip |
[ubicom32]: add 2.6.32 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19823 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.patch | 13 |
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; + } + |