diff options
author | Artem B. Bityutskiy <dedekind@sauron.oktetlabs.ru> | 2006-06-14 19:53:44 +0400 |
---|---|---|
committer | Artem B. Bityutskiy <dedekind@sauron.oktetlabs.ru> | 2006-06-14 19:53:44 +0400 |
commit | 783ed81ff39d3f938a6b2efd09fbad96e41e5c1f (patch) | |
tree | 31cdfd9c39c9451ba37866dcb6e82e68c770216c /drivers/mtd/mtdcore.c | |
parent | f9068876f5ef583f8e9ebf4acd2ef5b35b113db9 (diff) | |
download | op-kernel-dev-783ed81ff39d3f938a6b2efd09fbad96e41e5c1f.zip op-kernel-dev-783ed81ff39d3f938a6b2efd09fbad96e41e5c1f.tar.gz |
[MTD] assume mtd->writesize is 1 for NOR flashes
Signed-off-by: Artem B. Bityitskiy
Diffstat (limited to 'drivers/mtd/mtdcore.c')
-rw-r--r-- | drivers/mtd/mtdcore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 49bc9fdc..16a952dd 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -47,6 +47,7 @@ int add_mtd_device(struct mtd_info *mtd) { int i; + BUG_ON(mtd->writesize == 0); mutex_lock(&mtd_table_mutex); for (i=0; i < MAX_MTD_DEVICES; i++) |