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/mtdconcat.c | |
parent | 036d6543f85319ffe96afad6de73d3a220917a63 (diff) | |
download | op-kernel-dev-f6a6da179308356cac0f1dde979b67094437ef16.zip op-kernel-dev-f6a6da179308356cac0f1dde979b67094437ef16.tar.gz |
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/mtdconcat.c')
-rw-r--r-- | drivers/mtd/mtdconcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c index 239a8c8..481565e 100644 --- a/drivers/mtd/mtdconcat.c +++ b/drivers/mtd/mtdconcat.c @@ -777,7 +777,7 @@ struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to c } - concat->mtd.ecclayout = subdev[0]->ecclayout; + mtd_set_ecclayout(&concat->mtd, subdev[0]->ecclayout); concat->num_subdev = num_devs; concat->mtd.name = name; |