summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/map_absent.c
diff options
context:
space:
mode:
authorArtem B. Bityutskiy <dedekind@sauron.oktetlabs.ru>2006-06-22 18:15:48 +0400
committerArtem B. Bityutskiy <dedekind@sauron.oktetlabs.ru>2006-06-22 18:15:48 +0400
commit17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d (patch)
treea7b8595492f38425a971d8e212ce367fb0bebb4a /drivers/mtd/chips/map_absent.c
parent1794c13002918c2216e2e11913eb299d071a5731 (diff)
downloadblackbird-op-linux-17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d.tar.gz
blackbird-op-linux-17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d.zip
[MTD] Initialize 'writesize'
Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Diffstat (limited to 'drivers/mtd/chips/map_absent.c')
-rw-r--r--drivers/mtd/chips/map_absent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/chips/map_absent.c b/drivers/mtd/chips/map_absent.c
index a611de9b1515..ac01a949b687 100644
--- a/drivers/mtd/chips/map_absent.c
+++ b/drivers/mtd/chips/map_absent.c
@@ -64,7 +64,8 @@ static struct mtd_info *map_absent_probe(struct map_info *map)
mtd->write = map_absent_write;
mtd->sync = map_absent_sync;
mtd->flags = 0;
- mtd->erasesize = PAGE_SIZE;
+ mtd->erasesize = PAGE_SIZE;
+ mtd->writesize = 1;
__module_get(THIS_MODULE);
return mtd;
OpenPOWER on IntegriCloud