mtd: nand: add mtd->writebufsize initialization
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Jan 6 10:59:05 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=cbcab65a17319246dc360f6b5fac5f7b474b9821
Commit: cbcab65a17319246dc360f6b5fac5f7b474b9821
Parent: d261c72ae03066dc4798c085e904f7dc996a10fb
Author: Anatolij Gustschin <agust at denx.de>
AuthorDate: Thu Dec 16 23:42:16 2010 +0100
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Jan 6 15:35:55 2011 +0000
mtd: nand: add mtd->writebufsize initialization
Initialize mtd->writebufsize to be equal to mtd->writesize.
Signed-off-by: Anatolij Gustschin <agust at denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/nand_base.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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;
More information about the linux-mtd-cvs
mailing list