[U-Boot] [PATCH 4/6] mtd, onenand: add mtd writebufsize initialization

Holger Brunck holger.brunck at keymile.com
Thu Jan 20 17:17:03 CET 2011


Initialize mtd->writebufsize to be equal to mtd->writesize.

Signed-off-by: Holger Brunck <holger.brunck at keymile.com>
---
 drivers/mtd/onenand/onenand_base.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 24e02c2..8881672 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -2623,6 +2623,7 @@ static int onenand_probe(struct mtd_info *mtd)
 	mtd->sync = onenand_sync;
 	mtd->block_isbad = onenand_block_isbad;
 	mtd->block_markbad = onenand_block_markbad;
+	mtd->writebufsize = mtd->writesize;
 
 	return 0;
 }
-- 
1.7.0.5



More information about the U-Boot mailing list