summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorBoris Brezillon2016-02-03 20:14:03 +0100
committerBoris Brezillon2016-04-19 22:05:54 +0200
commiteb8c2be581e0f6c98830bc9eee09905f9fefed32 (patch)
tree380db05dffaaff3e87cf40c6bafad3e47de8fdf8 /drivers/mtd/onenand
parentmtd: nand: use mtd_set_ecclayout() where appropriate (diff)
downloadkernel-qcow2-linux-eb8c2be581e0f6c98830bc9eee09905f9fefed32.tar.gz
kernel-qcow2-linux-eb8c2be581e0f6c98830bc9eee09905f9fefed32.tar.xz
kernel-qcow2-linux-eb8c2be581e0f6c98830bc9eee09905f9fefed32.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 20fdf8cceae9..d0fa505d40bd 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 */