of: partitions: Support new binding
The new binding recommends to put the partitions into a subnode with compatible "fixed-partitions". Add support for this binding. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
1c7cf80f75
commit
1f2f980373
|
@ -79,6 +79,13 @@ int of_parse_partitions(struct cdev *cdev, struct device_node *node)
|
|||
if (!node)
|
||||
return -EINVAL;
|
||||
|
||||
for_each_child_of_node(node, n) {
|
||||
if (of_device_is_compatible(n, "fixed-partitions")) {
|
||||
node = n;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for_each_child_of_node(node, n) {
|
||||
of_parse_partition(cdev, n);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue