Patchwork [v2,3/6] mtd: nand: add mtd->writebufsize initialization

login
register
mail settings
Submitter Anatolij Gustschin
Date Dec. 16, 2010, 10:42 p.m.
Message ID <1292539339-25111-4-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/75813/
State New
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/nand/nand_base.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 5dd7ae4..4915067 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3439,6 +3439,7 @@  int nand_scan_tail(struct mtd_info *mtd)
 	mtd->resume = nand_resume;
 	mtd->block_isbad = nand_block_isbad;
 	mtd->block_markbad = nand_block_markbad;
+	mtd->writebufsize = mtd->writesize;
 
 	/* propagate ecc.layout to mtd_info */
 	mtd->ecclayout = chip->ecc.layout;