diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-03-23 06:19:03 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 16:04:49 -0400 |
commit | 8ae6bcd1dcea249591b4165bd7f795c4868bc531 (patch) | |
tree | 3294f5fc9d3fa487342cffcebf0588379564d18d /drivers/mtd | |
parent | 79082457d71af879922e15f9dedf85384e84c29f (diff) |
mtd: nand: nandsim: set ECC algorithm explicitly
This follows recent work on switching to enum nand_ecc_algo and
deprecating NAND_ECC_SOFT_BCH.
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/nandsim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 1fd519503bb1..6ff1d8d31ac2 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c | |||
@@ -2261,6 +2261,7 @@ static int __init ns_init_module(void) | |||
2261 | chip->read_buf = ns_nand_read_buf; | 2261 | chip->read_buf = ns_nand_read_buf; |
2262 | chip->read_word = ns_nand_read_word; | 2262 | chip->read_word = ns_nand_read_word; |
2263 | chip->ecc.mode = NAND_ECC_SOFT; | 2263 | chip->ecc.mode = NAND_ECC_SOFT; |
2264 | chip->ecc.algo = NAND_ECC_HAMMING; | ||
2264 | /* The NAND_SKIP_BBTSCAN option is necessary for 'overridesize' */ | 2265 | /* The NAND_SKIP_BBTSCAN option is necessary for 'overridesize' */ |
2265 | /* and 'badblocks' parameters to work */ | 2266 | /* and 'badblocks' parameters to work */ |
2266 | chip->options |= NAND_SKIP_BBTSCAN; | 2267 | chip->options |= NAND_SKIP_BBTSCAN; |
@@ -2339,6 +2340,7 @@ static int __init ns_init_module(void) | |||
2339 | goto error; | 2340 | goto error; |
2340 | } | 2341 | } |
2341 | chip->ecc.mode = NAND_ECC_SOFT_BCH; | 2342 | chip->ecc.mode = NAND_ECC_SOFT_BCH; |
2343 | chip->ecc.algo = NAND_ECC_BCH; | ||
2342 | chip->ecc.size = 512; | 2344 | chip->ecc.size = 512; |
2343 | chip->ecc.strength = bch; | 2345 | chip->ecc.strength = bch; |
2344 | chip->ecc.bytes = eccbytes; | 2346 | chip->ecc.bytes = eccbytes; |