Skip to content

Commit

Permalink
mtd: nand: omap2: set ECC algorithm explicitly
Browse files Browse the repository at this point in the history
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).

Signed-off-by: Rafał Miłecki <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
  • Loading branch information
rmilecki authored and Boris Brezillon committed May 5, 2016
1 parent aab616e commit d7b83b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,7 @@ static int omap_nand_probe(struct platform_device *pdev)
*/
if (info->ecc_opt == OMAP_ECC_HAM1_CODE_SW) {
nand_chip->ecc.mode = NAND_ECC_SOFT;
nand_chip->ecc.algo = NAND_ECC_HAMMING;
goto scan_tail;
}

Expand Down

0 comments on commit d7b83b8

Please sign in to comment.