mtd: nand: nuc900: set ECC algorithm explicitly
authorRafał Miłecki <zajec5@gmail.com>
Fri, 8 Apr 2016 10:23:47 +0000 (12:23 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:32 +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/nuc900_nand.c

index dbc5b571c2bbcca6a570e5855d2907009abd9b0f..8f64011d32ef2a2791a0380b003c10ab3dc63f0b 100644 (file)
@@ -261,6 +261,7 @@ static int nuc900_nand_probe(struct platform_device *pdev)
        chip->chip_delay        = 50;
        chip->options           = 0;
        chip->ecc.mode          = NAND_ECC_SOFT;
+       chip->ecc.algo          = NAND_ECC_HAMMING;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        nuc900_nand->reg = devm_ioremap_resource(&pdev->dev, res);