mtd: onenand: 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=25dcd29786d3fbd5751dc3c5b8109d930ea2d312
Commit:     25dcd29786d3fbd5751dc3c5b8109d930ea2d312
Parent:     cbcab65a17319246dc360f6b5fac5f7b474b9821
Author:     Anatolij Gustschin <agust at denx.de>
AuthorDate: Thu Dec 16 23:42:17 2010 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Jan 6 15:35:57 2011 +0000

    mtd: onenand: 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/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 2edef58..bac41ca 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -4080,6 +4080,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);



More information about the linux-mtd-cvs mailing list