Skip to content

Commit

Permalink
[MTD] bugfix: DataFlash is not bit writable
Browse files Browse the repository at this point in the history
This patch fixes the
"jffs2_flash_writev(): Non-contiguous write to 00825300 with mtd_dataflash" bug.

Signed-off-by: Haavard Skinnemoen <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
  • Loading branch information
Haavard Skinnemoen authored and dedekind committed Dec 1, 2006
1 parent c9ac597 commit 6c33caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/devices/mtd_dataflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c33caf

Please sign in to comment.