git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
mtd
/
chips
/
map_rom.c
diff --git
a/drivers/mtd/chips/map_rom.c
b/drivers/mtd/chips/map_rom.c
index
1b328b1
..
624c12c
100644
(file)
--- a/
drivers/mtd/chips/map_rom.c
+++ b/
drivers/mtd/chips/map_rom.c
@@
-46,8
+46,9
@@
static struct mtd_info *map_rom_probe(struct map_info *map)
mtd->write = maprom_write;
mtd->sync = maprom_nop;
mtd->flags = MTD_CAP_ROM;
mtd->write = maprom_write;
mtd->sync = maprom_nop;
mtd->flags = MTD_CAP_ROM;
- mtd->erasesize = map->size;
- mtd->writesize = 1;
+ mtd->erasesize = 131072;
+ while(mtd->size & (mtd->erasesize - 1))
+ mtd->erasesize >>= 1;
__module_get(THIS_MODULE);
return mtd;
__module_get(THIS_MODULE);
return mtd;