[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:
@@ -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;
|
||||
|
Viittaa uudesa ongelmassa
Block a user