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

Commit f771749e authored by Boris Brezillon's avatar Boris Brezillon Committed by Brian Norris
Browse files

mtd: nand: lpc32xx_mlc: fix ecc.size



According to the ECC layout description the actual ecc.size is 512 bytes
and not mtd->writesize.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 8be721be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -750,7 +750,7 @@ static int lpc32xx_nand_probe(struct platform_device *pdev)
	}

	nand_chip->ecc.mode = NAND_ECC_HW;
	nand_chip->ecc.size = mtd->writesize;
	nand_chip->ecc.size = 512;
	nand_chip->ecc.layout = &lpc32xx_nand_oob;
	host->mlcsubpages = mtd->writesize / 512;