Message ID | Yma3gy3Olkr73aRR@makrotopia.org (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | [RFC,1/5] block: add new flag to add partitions read-only | expand |
diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c index 18683d1c1bf501..b0f1f4565c719b 100644 --- a/drivers/mtd/ubi/block.c +++ b/drivers/mtd/ubi/block.c @@ -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);
Enable partition parsers on plain ubiblock devices in case of CONFIG_FIT_PARTITION being selected. Signed-off-by: Daniel Golle <daniel@makrotopia.org> --- drivers/mtd/ubi/block.c | 2 ++ 1 file changed, 2 insertions(+)