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
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
mtd
/
chips
/
map_ram.c
diff --git
a/drivers/mtd/chips/map_ram.c
b/drivers/mtd/chips/map_ram.c
index
bd2e876
..
5cb6d52
100644
(file)
--- a/
drivers/mtd/chips/map_ram.c
+++ b/
drivers/mtd/chips/map_ram.c
@@
-55,12
+55,10
@@
static struct mtd_info *map_ram_probe(struct map_info *map)
#endif
/* OK. It seems to be RAM. */
#endif
/* OK. It seems to be RAM. */
- mtd = k
m
alloc(sizeof(*mtd), GFP_KERNEL);
+ mtd = k
z
alloc(sizeof(*mtd), GFP_KERNEL);
if (!mtd)
return NULL;
if (!mtd)
return NULL;
- memset(mtd, 0, sizeof(*mtd));
-
map->fldrv = &mapram_chipdrv;
mtd->priv = map;
mtd->name = map->name;
map->fldrv = &mapram_chipdrv;
mtd->priv = map;
mtd->name = map->name;
@@
-70,7
+68,8
@@
static struct mtd_info *map_ram_probe(struct map_info *map)
mtd->read = mapram_read;
mtd->write = mapram_write;
mtd->sync = mapram_nop;
mtd->read = mapram_read;
mtd->write = mapram_write;
mtd->sync = mapram_nop;
- mtd->flags = MTD_CAP_RAM | MTD_VOLATILE;
+ mtd->flags = MTD_CAP_RAM;
+ mtd->writesize = 1;
mtd->erasesize = PAGE_SIZE;
while(mtd->size & (mtd->erasesize - 1))
mtd->erasesize = PAGE_SIZE;
while(mtd->size & (mtd->erasesize - 1))