diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-04-13 14:07:02 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-05-05 23:51:55 +0200 |
commit | e99b0d9865949e1bb41d1462427e200a6f9eb973 (patch) | |
tree | 56d9cecc85e8bd35cdc620f7f623fe6c64d848e1 /drivers/mtd | |
parent | ff1ef3501fae2fd92f4f1132fd27182507a749ec (diff) | |
download | linux-stable-e99b0d9865949e1bb41d1462427e200a6f9eb973.tar.gz linux-stable-e99b0d9865949e1bb41d1462427e200a6f9eb973.tar.bz2 linux-stable-e99b0d9865949e1bb41d1462427e200a6f9eb973.zip |
mtd: nand: fsl_elbc: 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')
-rw-r--r-- | drivers/mtd/nand/fsl_elbc_nand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c index 487eae07fefc..60a88f24c6b3 100644 --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c @@ -800,6 +800,7 @@ static int fsl_elbc_chip_init(struct fsl_elbc_mtd *priv) } else { /* otherwise fall back to default software ECC */ chip->ecc.mode = NAND_ECC_SOFT; + chip->ecc.algo = NAND_ECC_HAMMING; } return 0; |