Skip to content

Commit

Permalink
mtd: nand: use mtd_set_ecclayout() where appropriate
Browse files Browse the repository at this point in the history
Use the mtd_set_ecclayout() helper instead of directly assigning the
mtd->ecclayout field.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
  • Loading branch information
Boris Brezillon committed Apr 19, 2016
1 parent f6a6da1 commit 70d105e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
@@ -4285,7 +4285,7 @@ int nand_scan_tail(struct mtd_info *mtd)
ecc->write_oob_raw = ecc->write_oob;

/* propagate ecc info to mtd_info */
mtd->ecclayout = ecc->layout;
mtd_set_ecclayout(mtd, ecc->layout);
mtd->ecc_strength = ecc->strength;
mtd->ecc_step_size = ecc->size;

0 comments on commit 70d105e

Please sign in to comment.