[MTD] bugfix: DataFlash is not bit writable

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>
This commit is contained in:
Haavard Skinnemoen 2006-11-29 14:26:07 +01:00 committed by Artem Bityutskiy
parent c9ac597729
commit 6c33cafc79
1 changed files with 1 additions and 1 deletions

View 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;