Skip to content

Commit

Permalink
mtd: nand: fsl_ifc: set ECC algorithm explicitly
Browse files Browse the repository at this point in the history
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).

Signed-off-by: Rafał Miłecki <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
  • Loading branch information
rmilecki authored and Boris Brezillon committed May 5, 2016
1 parent ab2f5a8 commit ff1ef35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/fsl_ifc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ static int fsl_ifc_chip_init(struct fsl_ifc_mtd *priv)
}
} else {
chip->ecc.mode = NAND_ECC_SOFT;
chip->ecc.algo = NAND_ECC_HAMMING;
}

if (ctrl->version == FSL_IFC_VERSION_1_1_0)
Expand Down

0 comments on commit ff1ef35

Please sign in to comment.