diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-04-13 14:06:56 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-05-05 23:51:52 +0200 |
commit | e020cc05915e11bad3a923b52458baa2daac53cc (patch) | |
tree | 5eba9413051366743463efb4eff4f8903a55ea98 /drivers | |
parent | c4fe72a733c7749ab2c05e51bd37393525a86e2c (diff) | |
download | talos-obmc-linux-e020cc05915e11bad3a923b52458baa2daac53cc.tar.gz talos-obmc-linux-e020cc05915e11bad3a923b52458baa2daac53cc.zip |
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')
-rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 1 |
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; |