mtd: mtdram: initialize writebufsize field
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 2 Feb 2011 06:53:55 +0000 (08:53 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:42 +0000 (14:22 +0000)
Set the 'mtd->writebufsize' field to 64 to mimic modern CFI flashes.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/mtdram.c

index 26a6e809013d272059b8f5dbebc2730283bf2c02..1483e18971cef934b0c713fe9e5ab5727561cf12 100644 (file)
@@ -121,6 +121,7 @@ int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
        mtd->flags = MTD_CAP_RAM;
        mtd->size = size;
        mtd->writesize = 1;
+       mtd->writebufsize = 64; /* Mimic CFI NOR flashes */
        mtd->erasesize = MTDRAM_ERASE_SIZE;
        mtd->priv = mapped_address;