summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/sunxi_nand.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-04-17 22:53:07 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-05-05 23:55:13 +0200
commite4225ae8234cf5548c38dc887b233ad1d45b4d53 (patch)
tree8fc82521ccac7b0d7bee7d766a34dc77069e8f6b /drivers/mtd/nand/sunxi_nand.c
parentmtd: drop support for NAND_ECC_SOFT_BCH as "soft_bch" mapping (diff)
downloadlinux-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/sunxi_nand.c')
-rw-r--r--drivers/mtd/nand/sunxi_nand.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c
index 1baf89836210..a83a690688b4 100644
--- a/drivers/mtd/nand/sunxi_nand.c
+++ b/drivers/mtd/nand/sunxi_nand.c
@@ -1612,8 +1612,6 @@ static int sunxi_nand_ecc_init(struct mtd_info *mtd, struct nand_ecc_ctrl *ecc,
return -EINVAL;
switch (ecc->mode) {
- case NAND_ECC_SOFT_BCH:
- break;
case NAND_ECC_HW:
ret = sunxi_nand_hw_ecc_ctrl_init(mtd, ecc, np);
if (ret)