Patchwork [v2,4/6] mtd: onenand: add mtd->writebufsize initialization

login
register
mail settings
Submitter Anatolij Gustschin
Date Dec. 16, 2010, 10:42 p.m.
Message ID <1292539339-25111-5-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/75816/
State Accepted
Commit 25dcd29786d3fbd5751dc3c5b8109d930ea2d312
Headers show

Comments

Anatolij Gustschin - Dec. 16, 2010, 10:42 p.m.
Initialize mtd->writebufsize to be equal to mtd->writesize.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 drivers/mtd/onenand/onenand_base.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 2d7c90d..d552821 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -4076,6 +4076,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);