diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-04-17 22:53:07 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-05-05 23:55:13 +0200 |
commit | e4225ae8234cf5548c38dc887b233ad1d45b4d53 (patch) | |
tree | 8fc82521ccac7b0d7bee7d766a34dc77069e8f6b /drivers/mtd/nand/nandsim.c | |
parent | mtd: drop support for NAND_ECC_SOFT_BCH as "soft_bch" mapping (diff) | |
download | linux-e4225ae8234cf5548c38dc887b233ad1d45b4d53.tar.xz linux-e4225ae8234cf5548c38dc887b233ad1d45b4d53.zip |
mtd: mtd: drop NAND_ECC_SOFT_BCH enum value
This value should not be part of nand_ecc_modes_t as it specifies
algorithm not a mode. We successfully managed to introduce new "algo"
field which is respected now.
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/nandsim.c')
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 66eebb9e77f3..794745dff7f1 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c @@ -2339,7 +2339,7 @@ static int __init ns_init_module(void) retval = -EINVAL; goto error; } - chip->ecc.mode = NAND_ECC_SOFT_BCH; + chip->ecc.mode = NAND_ECC_SOFT; chip->ecc.algo = NAND_ECC_BCH; chip->ecc.size = 512; chip->ecc.strength = bch; |