[MTD] Initialize 'writesize'
[linux-2.6.git] / drivers / mtd / devices / block2mtd.c
index 0d98c223c5fc2e188d1f1e58ad0ea53ca0d1a506..be3f1c136d0211340a5b890b0f5648dd07c10777 100644 (file)
@@ -324,6 +324,7 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size)
 
        dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK;
        dev->mtd.erasesize = erase_size;
+       dev->mtd.writesize = 1;
        dev->mtd.type = MTD_RAM;
        dev->mtd.flags = MTD_CAP_RAM;
        dev->mtd.erase = block2mtd_erase;