[MTD] bugfix: DataFlash is not bit writable
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Wed, 29 Nov 2006 13:26:07 +0000 (14:26 +0100)
committerArtem Bityutskiy <dedekind@infradead.org>
Fri, 1 Dec 2006 08:30:45 +0000 (10:30 +0200)
This patch fixes the
"jffs2_flash_writev(): Non-contiguous write to 00825300 with mtd_dataflash" bug.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
drivers/mtd/devices/mtd_dataflash.c

index 5db71604592789492a5718150d9659d1d0455b77..10a4f4e263fee80a64c04fc5727985f5052c51f7 100644 (file)
@@ -480,7 +480,7 @@ add_dataflash(struct spi_device *spi, char *name,
        device->writesize = pagesize;
        device->owner = THIS_MODULE;
        device->type = MTD_DATAFLASH;
-       device->flags = MTD_CAP_NORFLASH;
+       device->flags = MTD_WRITEABLE;
        device->erase = dataflash_erase;
        device->read = dataflash_read;
        device->write = dataflash_write;