Skip to contentSkip to conversation

mtd/ubi/block: scan for partitions in case FIT_PARTITION is set

RFC PATCH In review Daniel Golle 1 participant 1 message Apr 25, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 5/5 mtd/ubi/block: scan for partitions in case FIT_PARTITION is set

Enable partition parsers on plain ubiblock devices in case of CONFIG_FIT_PARTITION being selected.

---
 drivers/mtd/ubi/block.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/ubi/block.c +2 -0
index 18683d1c1bf501..b0f1f4565c719b 100644
@@ -431,7 +431,9 @@ int ubiblock_create(struct ubi_volume_info *vi)
 		ret = -ENODEV;
 		goto out_cleanup_disk;
 	}
+#ifndef CONFIG_FIT_PARTITION
 	gd->flags |= GENHD_FL_NO_PART;
+#endif
 	gd->private_data = dev;
 	sprintf(gd->disk_name, "ubiblock%d_%d", dev->ubi_num, dev->vol_id);
 	set_capacity(gd, disk_capacity);
Signature · 1 line
2.36.0