diff options
author | Artem B. Bityutskiy <dedekind@sauron.oktetlabs.ru> | 2006-06-14 17:53:44 +0200 |
---|---|---|
committer | Artem B. Bityutskiy <dedekind@sauron.oktetlabs.ru> | 2006-06-14 17:53:44 +0200 |
commit | 783ed81ff39d3f938a6b2efd09fbad96e41e5c1f (patch) | |
tree | 31cdfd9c39c9451ba37866dcb6e82e68c770216c /drivers/mtd/devices/mtdram.c | |
parent | [MTD NAND] Fix s3c2410 NAND driver so it at least _looks_ like it compiles (diff) | |
download | linux-783ed81ff39d3f938a6b2efd09fbad96e41e5c1f.tar.xz linux-783ed81ff39d3f938a6b2efd09fbad96e41e5c1f.zip |
[MTD] assume mtd->writesize is 1 for NOR flashes
Signed-off-by: Artem B. Bityitskiy
Diffstat (limited to 'drivers/mtd/devices/mtdram.c')
-rw-r--r-- | drivers/mtd/devices/mtdram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index f284c9670be8..8ab4b931215f 100644 --- a/drivers/mtd/devices/mtdram.c +++ b/drivers/mtd/devices/mtdram.c @@ -106,6 +106,7 @@ int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, mtd->type = MTD_GENERIC_TYPE; mtd->flags = MTD_CAP_RAM; mtd->size = size; + mtd->writesize = 1; mtd->erasesize = MTDRAM_ERASE_SIZE; mtd->priv = mapped_address; |