of_resolve_phandles — Resolve the given node against the live tree.
int of_resolve_phandles ( | struct device_node * resolve) ; |
Perform dynamic Device Tree resolution against the live tree to the given node to resolve. This depends on the live tree having a __symbols__ node, and the resolve node the __fixups__ & __local_fixups__ nodes (if needed). The result of the operation is a resolve node whose contents are fit to be inserted or operate upon the live tree.
0
on success, else -ENOENT
on failure to find a node or property,
-ERANGE
on overflow, -EINVAL
on parsing error or non-existent property;
node “/__symbols__” does not exist; zzz, -EILSEQ
if a string is not
null-terminated within the length of the property data, -ENODATA
if a
property does not have a value, -ENOMEM
on memory allocation error.