From: Rafał Miłecki Date: Fri, 8 Apr 2016 10:23:44 +0000 (+0200) Subject: mtd: nand: ams-delta: set ECC algorithm explicitly X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e58dd3c33d3046c3ad3c849cb95365b45b9ecb5f;p=openwrt%2Fstaging%2Fblogic.git mtd: nand: ams-delta: 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 Signed-off-by: Boris Brezillon --- diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-delta.c index 68b58c85789c..78e12cc8bac2 100644 --- a/drivers/mtd/nand/ams-delta.c +++ b/drivers/mtd/nand/ams-delta.c @@ -224,6 +224,7 @@ static int ams_delta_init(struct platform_device *pdev) /* 25 us command delay time */ this->chip_delay = 30; this->ecc.mode = NAND_ECC_SOFT; + this->ecc.algo = NAND_ECC_HAMMING; platform_set_drvdata(pdev, io_base);