9
0
Fork 0

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:
Sascha Hauer 2016-11-08 14:35:19 +01:00
parent 1c7cf80f75
commit 1f2f980373
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}