summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/nandsim.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-04-17 23:53:07 +0300
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-05-06 00:55:13 +0300
commite4225ae8234cf5548c38dc887b233ad1d45b4d53 (patch)
tree8fc82521ccac7b0d7bee7d766a34dc77069e8f6b /drivers/mtd/nand/nandsim.c
parentae211bcfa1d013bea16912e7caebb1367740d4b4 (diff)
downloadlinux-e4225ae8234cf5548c38dc887b233ad1d45b4d53.tar.xz
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.c2
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;