Skip to content

Commit

Permalink
mtd: nand: add mtd->writebufsize initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anatolij Gustschin authored and David Woodhouse committed Jan 6, 2011
1 parent d261c72 commit cbcab65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbcab65

Please sign in to comment.