X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmtd%2Fdevices%2Fmtdram.c;h=e427c82d5f4cb046ff4234e4ce8919062569fda3;hb=fe6ea1f7e5c2d3947bf62f2a219e69718ca0b187;hp=1443117fd8f4afb988becd36beb1d14a084c5646;hpb=ddbf9ef385bfbef897210733abfb73cb9b94ecec;p=linux-2.6 diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index 1443117fd8..e427c82d5f 100644 --- a/drivers/mtd/devices/mtdram.c +++ b/drivers/mtd/devices/mtdram.c @@ -10,7 +10,6 @@ * */ -#include #include #include #include @@ -106,6 +105,7 @@ int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, mtd->type = MTD_RAM; mtd->flags = MTD_CAP_RAM; mtd->size = size; + mtd->writesize = 1; mtd->erasesize = MTDRAM_ERASE_SIZE; mtd->priv = mapped_address;