Skip to content

Commit

Permalink
mtd: nand: s3c2410: 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 d7b83b8 commit c4fe72a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
}
#else
chip->ecc.mode = NAND_ECC_SOFT;
chip->ecc.algo = NAND_ECC_HAMMING;
#endif

if (set->disable_ecc)
Expand Down

0 comments on commit c4fe72a

Please sign in to comment.