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

Commit 6b03f6ce authored by Pavan Anamula's avatar Pavan Anamula Committed by Gerrit - the friendly Code Review server
Browse files

mtd: msm_qpic_nand: Update ECC correctable bits



Update the ECC correctable bits as per updated nand_flash_dev structure,
to fix the compilation issue as well as to a newer solution for
specifying ECC info.

Change-Id: If91b2ee63c10e45efe64b8624ac3c80f57319742
Signed-off-by: default avatarPavan Anamula <pavana@codeaurora.org>
parent 13dd6cc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2851,8 +2851,8 @@ int msm_nand_scan(struct mtd_info *mtd)
			supported_flash->blksize = flashdev->erasesize;
			supported_flash->oobsize = flashdev->oobsize;
			supported_flash->ecc_correctability =
					flashdev->ecc_correctable_bits;
			if (!flashdev->ecc_correctable_bits)
					flashdev->ecc.strength_ds;
			if (!flashdev->ecc.strength_ds)
				pr_err("num ecc correctable bit not specified and defaults to 4 bit BCH\n");
		}
		supported_flash->flash_id = flash_id;