summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-04-13 15:06:56 +0300
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-05-06 00:51:52 +0300
commite020cc05915e11bad3a923b52458baa2daac53cc (patch)
tree5eba9413051366743463efb4eff4f8903a55ea98 /drivers/mtd
parentc4fe72a733c7749ab2c05e51bd37393525a86e2c (diff)
downloadlinux-e020cc05915e11bad3a923b52458baa2daac53cc.tar.xz
mtd: nand: sh_flctl: 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/sh_flctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index fa4661060a2d..a5abf6f70f72 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -1052,6 +1052,7 @@ static int flctl_chip_init_tail(struct mtd_info *mtd)
flctl->flcmncr_base |= _4ECCEN;
} else {
chip->ecc.mode = NAND_ECC_SOFT;
+ chip->ecc.algo = NAND_ECC_HAMMING;
}
return 0;