diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-04-13 14:07:01 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-05-05 23:51:55 +0200 |
commit | ff1ef3501fae2fd92f4f1132fd27182507a749ec (patch) | |
tree | d9e585ae8ac1d3d9c22fd71e60e7bf2a6e83da82 /drivers/mtd/nand/fsl_ifc_nand.c | |
parent | ab2f5a809871dead7237a86c962d83e2f7b12e8d (diff) | |
download | op-kernel-dev-ff1ef3501fae2fd92f4f1132fd27182507a749ec.zip op-kernel-dev-ff1ef3501fae2fd92f4f1132fd27182507a749ec.tar.gz |
mtd: nand: fsl_ifc: set ECC algorithm explicitly
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/fsl_ifc_nand.c')
-rw-r--r-- | drivers/mtd/nand/fsl_ifc_nand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 864aa12..4e9e5fd 100644 --- a/drivers/mtd/nand/fsl_ifc_nand.c +++ b/drivers/mtd/nand/fsl_ifc_nand.c @@ -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) |