diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-02-03 19:14:03 (GMT) |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 20:05:54 (GMT) |
commit | eb8c2be581e0f6c98830bc9eee09905f9fefed32 (patch) | |
tree | 380db05dffaaff3e87cf40c6bafad3e47de8fdf8 /drivers/mtd/onenand | |
parent | 70d105e4eec233d8f8758d604bfe6c411b6ded5f (diff) | |
download | linux-eb8c2be581e0f6c98830bc9eee09905f9fefed32.tar.xz |
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: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 20fdf8c..d0fa505 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -3997,7 +3997,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips) mtd->oobavail = ret; - mtd->ecclayout = this->ecclayout; + mtd_set_ecclayout(mtd, this->ecclayout); mtd->ecc_strength = 1; /* Fill in remaining MTD driver data */ |