diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-04-13 14:07:00 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-05-05 23:51:54 +0200 |
commit | ab2f5a809871dead7237a86c962d83e2f7b12e8d (patch) | |
tree | eab128a9cc45064089a809625efaf825b4fcb7ba /drivers/mtd | |
parent | mtd: nand: cmx270: set ECC algorithm explicitly (diff) | |
download | linux-ab2f5a809871dead7237a86c962d83e2f7b12e8d.tar.xz 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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/fsl_upm.c | 1 |
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; |