mtd: nand: kill the ecc->layout field
Now that all NAND drivers have switched to mtd_ooblayout_ops, we can kill the ecc->layout field. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
这个提交包含在:
@@ -158,14 +158,6 @@ struct nand_bch_control *nand_bch_init(struct mtd_info *mtd)
|
||||
|
||||
eccsteps = mtd->writesize/eccsize;
|
||||
|
||||
/*
|
||||
* Rely on the default ecclayout to ooblayout wrapper provided by MTD
|
||||
* core if ecc.layout is not NULL.
|
||||
* FIXME: this should be removed when all callers have moved to the
|
||||
* mtd_ooblayout_ops approach.
|
||||
*/
|
||||
mtd_set_ecclayout(mtd, nand->ecc.layout);
|
||||
|
||||
/* Check that we have an oob layout description. */
|
||||
if (!mtd->ooblayout) {
|
||||
pr_warn("missing oob scheme");
|
||||
|
在新工单中引用
屏蔽一个用户