提交 eb8c2be5 编写于 作者: B Boris Brezillon

mtd: onenand: use mtd_set_ecclayout() where appropriate

Use the mtd_set_ecclayout() helper instead of directly assigning the
mtd->ecclayout field.
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 70d105e4
...@@ -3997,7 +3997,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips) ...@@ -3997,7 +3997,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
mtd->oobavail = ret; mtd->oobavail = ret;
mtd->ecclayout = this->ecclayout; mtd_set_ecclayout(mtd, this->ecclayout);
mtd->ecc_strength = 1; mtd->ecc_strength = 1;
/* Fill in remaining MTD driver data */ /* Fill in remaining MTD driver data */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册