[MTD] replace MTD_RAM with MTD_GENERIC_TYPE

Ram devices get the extra capability of MTD_NO_ERASE - not requiring
an explicit erase before writing to it.  Currently only mtdblock uses
this capability.  Rest of the patch is a simple text replacement.

Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
This commit is contained in:
Joern Engel
2006-05-30 14:25:24 +02:00
vanhempi e369d62e92
commit 92cbfdcc36
9 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa

Näytä tiedosto

@@ -64,7 +64,7 @@ static struct mtd_info *map_ram_probe(struct map_info *map)
map->fldrv = &mapram_chipdrv;
mtd->priv = map;
mtd->name = map->name;
mtd->type = MTD_RAM;
mtd->type = MTD_GENERIC_TYPE;
mtd->size = map->size;
mtd->erase = mapram_erase;
mtd->read = mapram_read;