diff options
author | Artem B. Bityutskiy <dedekind@sauron.oktetlabs.ru> | 2006-06-22 16:15:48 +0200 |
---|---|---|
committer | Artem B. Bityutskiy <dedekind@sauron.oktetlabs.ru> | 2006-06-22 16:15:48 +0200 |
commit | 17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d (patch) | |
tree | a7b8595492f38425a971d8e212ce367fb0bebb4a /drivers/mtd/devices/phram.c | |
parent | [MTD] NAND: ndfc fix address offset thinko (diff) | |
download | linux-17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d.tar.xz linux-17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d.zip |
[MTD] Initialize 'writesize'
Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Diffstat (limited to 'drivers/mtd/devices/phram.c')
-rw-r--r-- | drivers/mtd/devices/phram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c index e09e416667d3..6c7337f9ebbb 100644 --- a/drivers/mtd/devices/phram.c +++ b/drivers/mtd/devices/phram.c @@ -151,6 +151,7 @@ static int register_device(char *name, unsigned long start, unsigned long len) new->mtd.owner = THIS_MODULE; new->mtd.type = MTD_RAM; new->mtd.erasesize = PAGE_SIZE; + new->mtd.writesize = 1; ret = -EAGAIN; if (add_mtd_device(&new->mtd)) { |