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: v4.7-rc1~65^2~2^2~112 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c1c7040e072caac6445a1e298bd1fc5e8da0a5f5;p=karo-tx-linux.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 854c832597aa..57b1b74c8fa0 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 */