|
@@ -752,10 +752,8 @@ static int vf610_nfc_probe(struct platform_device *pdev)
|
|
|
if (mtd->oobsize > 64)
|
|
if (mtd->oobsize > 64)
|
|
|
mtd->oobsize = 64;
|
|
mtd->oobsize = 64;
|
|
|
|
|
|
|
|
- /*
|
|
|
|
|
- * mtd->ecclayout is not specified here because we're using the
|
|
|
|
|
- * default large page ECC layout defined in NAND core.
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ /* Use default large page ECC layout defined in NAND core */
|
|
|
|
|
+ mtd_set_ooblayout(mtd, &nand_ooblayout_lp_ops);
|
|
|
if (chip->ecc.strength == 32) {
|
|
if (chip->ecc.strength == 32) {
|
|
|
nfc->ecc_mode = ECC_60_BYTE;
|
|
nfc->ecc_mode = ECC_60_BYTE;
|
|
|
chip->ecc.bytes = 60;
|
|
chip->ecc.bytes = 60;
|