9
0
Fork 0

mtd: Use flags parameter in mtd_add_partition

mtd_add_partition is passed a flag parameter. This has been unused
so the DEVFS_PARTITION_FIXED and DEVFS_PARTITION_READONLY were ignored.
Fix this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2015-02-06 09:30:32 +01:00
parent 8587c5f8a9
commit 8f19864803
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ struct mtd_info *mtd_add_partition(struct mtd_info *mtd, off_t offset,
part->ecclayout = mtd->ecclayout;
part->ecc_strength = mtd->ecc_strength;
part->subpage_sft = mtd->subpage_sft;
part->cdev.flags = flags;
if (mtd->numeraseregions > 1) {
/* Deal with variable erase size stuff */