diff options
Diffstat (limited to 'drivers/of/partition.c')
-rw-r--r-- | drivers/of/partition.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/partition.c b/drivers/of/partition.c index 4e10b597d1..5c5b9ef2f6 100644 --- a/drivers/of/partition.c +++ b/drivers/of/partition.c @@ -248,6 +248,9 @@ static int of_partition_fixup(struct device_node *root, void *ctx) if (!cdev->device_node) return -EINVAL; + if (list_empty(&cdev->partitions)) + return 0; + name = of_get_reproducible_name(cdev->device_node); np = of_find_node_by_reproducible_name(root, name); free(name); |