summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2006-11-29 14:26:07 +0100
committerArtem Bityutskiy <dedekind@infradead.org>2006-12-01 09:30:45 +0100
commit6c33cafc794d07c9254c160789120a0e98c088c9 (patch)
treee439bc3b15c835a435d4217dc2d5fb1214f5f9f6 /drivers/mtd/devices
parent[MTD] Remove trailing whitespace (diff)
downloadlinux-6c33cafc794d07c9254c160789120a0e98c088c9.tar.xz
linux-6c33cafc794d07c9254c160789120a0e98c088c9.zip
[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>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/mtd_dataflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index 5db716045927..10a4f4e263fe 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -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;