summaryrefslogtreecommitdiffstats
path: root/common/partitions.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-30 22:58:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-31 18:43:24 +0200
commit617192a1053a6614c2ad09054e5ee4f517f02308 (patch)
tree49cec2a4dce873d53779066cf934ec25947184f7 /common/partitions.c
parent1accb5ecdd59e255f01b98b837138c553582ab4c (diff)
downloadbarebox-617192a1053a6614c2ad09054e5ee4f517f02308.tar.gz
of: partitions: flag partitions from a partition table
We are going to call the of_partition_fixup for regular block devices like MMC/SD aswell. Add a flag to partitions indicating they are instanciated from a on-disk partition table so that they won't be added as device tree partitions during fixup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions.c')
-rw-r--r--common/partitions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/partitions.c b/common/partitions.c
index 69a2b1fe..574b31f 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -63,6 +63,8 @@ static int register_one_partition(struct block_device *blk,
goto out;
}
+ cdev->flags |= DEVFS_PARTITION_FROM_TABLE;
+
cdev->dos_partition_type = part->dos_partition_type;
strcpy(cdev->partuuid, part->partuuid);