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 | 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/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 239a8c806b67..481565e5fbaa 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; |