summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-04-13 14:06:59 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-05-05 23:51:54 +0200
commitd9944e1fdcd6c363a24577ac64c6d1128152ff6d (patch)
treee114056d1dc1a4dedd631b971f9e6ba2ff9d6231 /drivers
parent7079e7ed4a4e8b74a7dc3feafc0e70cc027cab32 (diff)
downloadlinux-d9944e1fdcd6c363a24577ac64c6d1128152ff6d.tar.gz
linux-d9944e1fdcd6c363a24577ac64c6d1128152ff6d.tar.bz2
linux-d9944e1fdcd6c363a24577ac64c6d1128152ff6d.zip
mtd: nand: cmx270: 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')
-rw-r--r--drivers/mtd/nand/cmx270_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c
index 6f97ebba52c4..49133783ca53 100644
--- a/drivers/mtd/nand/cmx270_nand.c
+++ b/drivers/mtd/nand/cmx270_nand.c
@@ -187,6 +187,7 @@ static int __init cmx270_init(void)
/* 15 us command delay time */
this->chip_delay = 20;
this->ecc.mode = NAND_ECC_SOFT;
+ this->ecc.algo = NAND_ECC_HAMMING;
/* read/write functions */
this->read_byte = cmx270_read_byte;