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:
parent
8587c5f8a9
commit
8f19864803
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue