mtd: nand: fsl_ifc: set ECC algorithm explicitly
authorRafał Miłecki <zajec5@gmail.com>
Wed, 13 Apr 2016 12:07:01 +0000 (14:07 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 5 May 2016 21:51:55 +0000 (23:51 +0200)
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>
drivers/mtd/nand/fsl_ifc_nand.c

index 864aa12a1a136ed3acff6c3395ae9746f0e6f7b7..4e9e5fd8faf30c22d5fa9159fe6a979228131954 100644 (file)
@@ -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)