1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[ubicom32]: add 2.6.32 support

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19823 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
kaloz
2010-02-23 10:43:53 +00:00
parent 9eedef7a46
commit 250089c5e9
16 changed files with 2387 additions and 20 deletions

View File

@@ -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;
}