From: Rafał Miłecki Date: Wed, 13 Apr 2016 12:07:00 +0000 (+0200) Subject: mtd: nand: fsl_upm: set ECC algorithm explicitly X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ab2f5a809871dead7237a86c962d83e2f7b12e8d;p=linux-beck.git mtd: nand: fsl_upm: 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/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c index cafd12de7276..d85fa2555b68 100644 --- a/drivers/mtd/nand/fsl_upm.c +++ b/drivers/mtd/nand/fsl_upm.c @@ -170,6 +170,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun, fun->chip.read_buf = fun_read_buf; fun->chip.write_buf = fun_write_buf; fun->chip.ecc.mode = NAND_ECC_SOFT; + fun->chip.ecc.algo = NAND_ECC_HAMMING; if (fun->mchip_count > 1) fun->chip.select_chip = fun_select_chip;