aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2010-12-16 23:42:17 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-01-06 15:35:57 +0000
commit25dcd29786d3fbd5751dc3c5b8109d930ea2d312 (patch)
tree981d7b851bfaa6cce4583d06053c8b1bc1d644f5 /drivers/mtd/onenand
parentcbcab65a17319246dc360f6b5fac5f7b474b9821 (diff)
downloadkernel_samsung_aries-25dcd29786d3fbd5751dc3c5b8109d930ea2d312.zip
kernel_samsung_aries-25dcd29786d3fbd5751dc3c5b8109d930ea2d312.tar.gz
kernel_samsung_aries-25dcd29786d3fbd5751dc3c5b8109d930ea2d312.tar.bz2
mtd: onenand: add mtd->writebufsize initialization
Initialize mtd->writebufsize to be equal to mtd->writesize. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/onenand_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 2edef58..bac41ca 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -4080,6 +4080,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
mtd->block_isbad = onenand_block_isbad;
mtd->block_markbad = onenand_block_markbad;
mtd->owner = THIS_MODULE;
+ mtd->writebufsize = mtd->writesize;
/* Unlock whole block */
this->unlock_all(mtd);