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

login
register
mail settings
Submitter Holger Brunck
Date Jan. 20, 2011, 4:17 p.m.
Message ID <1295540225-11083-3-git-send-email-holger.brunck@keymile.com>
Download mbox | patch
Permalink /patch/79717/
State Rejected
Delegated to: Stefan Roese
Headers show

Comments

Holger Brunck - Jan. 20, 2011, 4:17 p.m.
Initialize mtd->writebufsize to be equal to mtd->writesize.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
---
 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 3b96b0e..26ae720 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2843,6 +2843,7 @@  int nand_scan_tail(struct mtd_info *mtd)
 	mtd->unlock = NULL;
 	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;