[PATCH] of/flattree: Early "find node by alias" function

Pawel Moll pawel.moll at arm.com
Sat Oct 22 04:08:13 EST 2011


On Fri, 2011-10-21 at 17:45 +0100, David Daney wrote:
> How is this patch different/better than:
> http://lists.ozlabs.org/pipermail/devicetree-discuss/2011-June/005819.html

Probably I should have been more precise...

> > This patch adds a function for finding a node in flat tree
> > based on an alias name. It can be used in early boot code.

and add "... before the tree is unflattened.". So the it's similar to a
difference between

const void *of_get_property(const struct device_node *np, const char *name,
                         int *lenp)

and

void *__init of_get_flat_dt_prop(unsigned long node, const char *name,
                                 unsigned long *size)

Cheers!

Pawel




More information about the devicetree-discuss mailing list