mtd: nand: use mtd_set_ecclayout() where appropriate
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon May 23 21:59:13 PDT 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=70d105e4eec233d8f8758d604bfe6c411b6ded5f
Commit: 70d105e4eec233d8f8758d604bfe6c411b6ded5f
Parent: f6a6da179308356cac0f1dde979b67094437ef16
Author: Boris Brezillon <boris.brezillon at free-electrons.com>
AuthorDate: Wed Feb 3 20:13:50 2016 +0100
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Tue Apr 19 22:05:54 2016 +0200
mtd: nand: use mtd_set_ecclayout() where appropriate
Use the mtd_set_ecclayout() helper instead of directly assigning the
mtd->ecclayout field.
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/nand_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 24ed445..feb1448 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -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;
More information about the linux-mtd-cvs
mailing list