mtd: nand: orion: set ECC algorithm explicitly
authorRafał Miłecki <zajec5@gmail.com>
Fri, 8 Apr 2016 10:23:48 +0000 (12:23 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:33 +0000 (22:05 +0200)
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/orion_nand.c

index d4614bfbfed6c1c63b95fec88c2af2c96dedd182..40a7c4a2cf0d44c8f407dc6c170d44cc8d768510 100644 (file)
@@ -130,6 +130,7 @@ static int __init orion_nand_probe(struct platform_device *pdev)
        nc->cmd_ctrl = orion_nand_cmd_ctrl;
        nc->read_buf = orion_nand_read_buf;
        nc->ecc.mode = NAND_ECC_SOFT;
+       nc->ecc.algo = NAND_ECC_HAMMING;
 
        if (board->chip_delay)
                nc->chip_delay = board->chip_delay;