diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-04-13 12:06:55 (GMT) |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-05-05 21:51:52 (GMT) |
commit | c4fe72a733c7749ab2c05e51bd37393525a86e2c (patch) | |
tree | dd89d2b6100f1c927b7791422e3ab0897287d587 /drivers/mtd/nand | |
parent | d7b83b8a6dda3edada04f9395e2ef6463e099277 (diff) | |
download | linux-c4fe72a733c7749ab2c05e51bd37393525a86e2c.tar.xz |
mtd: nand: s3c2410: 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/nand')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 4c043db..d9309cf 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -882,6 +882,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info, } #else chip->ecc.mode = NAND_ECC_SOFT; + chip->ecc.algo = NAND_ECC_HAMMING; #endif if (set->disable_ecc) |