diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-02-03 20:13:26 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 22:05:53 +0200 |
commit | f6a6da179308356cac0f1dde979b67094437ef16 (patch) | |
tree | 298c1f4fc797cec65abc8139b92d1875ec0c3c00 /drivers/mtd/mtdpart.c | |
parent | mtd: add mtd_set_ecclayout() helper function (diff) | |
download | linux-f6a6da179308356cac0f1dde979b67094437ef16.tar.xz linux-f6a6da179308356cac0f1dde979b67094437ef16.zip |
mtd: 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/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 08de4b2cf0f5..f53d9d72b23a 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c @@ -533,7 +533,7 @@ static struct mtd_part *allocate_partition(struct mtd_info *master, part->name); } - slave->mtd.ecclayout = master->ecclayout; + mtd_set_ecclayout(&slave->mtd, master->ecclayout); slave->mtd.ecc_step_size = master->ecc_step_size; slave->mtd.ecc_strength = master->ecc_strength; slave->mtd.bitflip_threshold = master->bitflip_threshold; |