diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-12-16 17:42:16 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-01-06 10:35:55 -0500 |
commit | cbcab65a17319246dc360f6b5fac5f7b474b9821 (patch) | |
tree | cb294c6c043efc5e252b7e5443d4d847807fa9cf | |
parent | d261c72ae03066dc4798c085e904f7dc996a10fb (diff) |
mtd: nand: add mtd->writebufsize initialization
Initialize mtd->writebufsize to be equal to mtd->writesize.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | 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 5dd7ae4e4b23..4915067379b8 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) | |||
3439 | mtd->resume = nand_resume; | 3439 | mtd->resume = nand_resume; |
3440 | mtd->block_isbad = nand_block_isbad; | 3440 | mtd->block_isbad = nand_block_isbad; |
3441 | mtd->block_markbad = nand_block_markbad; | 3441 | mtd->block_markbad = nand_block_markbad; |
3442 | mtd->writebufsize = mtd->writesize; | ||
3442 | 3443 | ||
3443 | /* propagate ecc.layout to mtd_info */ | 3444 | /* propagate ecc.layout to mtd_info */ |
3444 | mtd->ecclayout = chip->ecc.layout; | 3445 | mtd->ecclayout = chip->ecc.layout; |