summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-04-13 14:07:00 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-05-05 23:51:54 +0200
commitab2f5a809871dead7237a86c962d83e2f7b12e8d (patch)
treeeab128a9cc45064089a809625efaf825b4fcb7ba
parentd9944e1fdcd6c363a24577ac64c6d1128152ff6d (diff)
downloadlinux-ab2f5a809871dead7237a86c962d83e2f7b12e8d.tar.gz
linux-ab2f5a809871dead7237a86c962d83e2f7b12e8d.tar.bz2
linux-ab2f5a809871dead7237a86c962d83e2f7b12e8d.zip
mtd: nand: fsl_upm: 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>
-rw-r--r--drivers/mtd/nand/fsl_upm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index cafd12de7276..d85fa2555b68 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -170,6 +170,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun,
fun->chip.read_buf = fun_read_buf;
fun->chip.write_buf = fun_write_buf;
fun->chip.ecc.mode = NAND_ECC_SOFT;
+ fun->chip.ecc.algo = NAND_ECC_HAMMING;
if (fun->mchip_count > 1)
fun->chip.select_chip = fun_select_chip;