[MTD] Initialize 'writesize'

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
This commit is contained in:
Artem B. Bityutskiy
2006-06-22 18:15:48 +04:00
parent 1794c13002
commit 17ffc7ba6d
11 changed files with 13 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ static struct mtd_info *map_ram_probe(struct map_info *map)
mtd->write = mapram_write;
mtd->sync = mapram_nop;
mtd->flags = MTD_CAP_RAM;
mtd->writesize = 1;
mtd->erasesize = PAGE_SIZE;
while(mtd->size & (mtd->erasesize - 1))