Commit cbcab65a authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by David Woodhouse

mtd: nand: add mtd->writebufsize initialization

Initialize mtd->writebufsize to be equal to mtd->writesize.
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent d261c72a
...@@ -3439,6 +3439,7 @@ int nand_scan_tail(struct mtd_info *mtd) ...@@ -3439,6 +3439,7 @@ int nand_scan_tail(struct mtd_info *mtd)
mtd->resume = nand_resume; mtd->resume = nand_resume;
mtd->block_isbad = nand_block_isbad; mtd->block_isbad = nand_block_isbad;
mtd->block_markbad = nand_block_markbad; mtd->block_markbad = nand_block_markbad;
mtd->writebufsize = mtd->writesize;
/* propagate ecc.layout to mtd_info */ /* propagate ecc.layout to mtd_info */
mtd->ecclayout = chip->ecc.layout; mtd->ecclayout = chip->ecc.layout;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment