summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-04-17 22:52:57 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-05-05 23:52:02 +0200
commit04dae62c89bd6e754518f9dcffac480e39f28758 (patch)
tree8cba3f906aaa5748df84263f83099c5136f56567
parent8c6f0fc4d2d505b17fc67675f0797fe3fc6e6c26 (diff)
downloadop-kernel-dev-04dae62c89bd6e754518f9dcffac480e39f28758.zip
op-kernel-dev-04dae62c89bd6e754518f9dcffac480e39f28758.tar.gz
mtd: nand: bf5xx: 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 <zajec5@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
-rw-r--r--drivers/mtd/nand/bf5xx_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
index b38f414..37da423 100644
--- a/drivers/mtd/nand/bf5xx_nand.c
+++ b/drivers/mtd/nand/bf5xx_nand.c
@@ -817,6 +817,7 @@ static int bf5xx_nand_probe(struct platform_device *pdev)
chip->ecc.write_page_raw = bf5xx_nand_write_page_raw;
} else {
chip->ecc.mode = NAND_ECC_SOFT;
+ chip->ecc.algo = NAND_ECC_HAMMING;
}
/* scan hardware nand chip and setup mtd info data struct */
OpenPOWER on IntegriCloud