Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25dcd297 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by David Woodhouse
Browse files

mtd: onenand: 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 cbcab65a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);