summaryrefslogtreecommitdiffstats
path: root/drivers/of/partition.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-11-15 14:21:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-15 14:21:13 +0100
commit42cdd1452a51ca970a6cda76e3bdbe4f04d6e13f (patch)
treee977baadd93fd72759c1c0b96aee77090950b39b /drivers/of/partition.c
parent71f347dadfd9d19b57c4bda1ff446add38081e92 (diff)
parentf1d33492703334c6a8c813c4af546a1d6d87c385 (diff)
downloadbarebox-42cdd1452a51ca970a6cda76e3bdbe4f04d6e13f.tar.gz
barebox-42cdd1452a51ca970a6cda76e3bdbe4f04d6e13f.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'drivers/of/partition.c')
-rw-r--r--drivers/of/partition.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 10081363de..18b138f00e 100644
--- a/drivers/of/partition.c
+++ b/drivers/of/partition.c
@@ -256,6 +256,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);