From: Rafał Miłecki Date: Fri, 8 Apr 2016 10:23:46 +0000 (+0200) Subject: mtd: nand: mxc: set ECC algorithm explicitly X-Git-Tag: v5.15~13505^2~4^2~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1c7040e072caac6445a1e298bd1fc5e8da0a5f5;p=platform%2Fkernel%2Flinux-starfive.git mtd: nand: mxc: 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/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 854c832..57b1b74 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -1585,6 +1585,7 @@ static int mxcnd_probe(struct platform_device *pdev) this->ecc.mode = NAND_ECC_HW; } else { this->ecc.mode = NAND_ECC_SOFT; + this->ecc.algo = NAND_ECC_HAMMING; } /* NAND bus width determines access functions used by upper layer */