[V2 PATCH 00/10] of: Consolidate scattered device node pointers in struct device

Grant Likely grant.likely at secretlab.ca
Fri Mar 19 02:35:30 EST 2010


On Thu, Mar 18, 2010 at 9:22 AM, Grant Likely <grant.likely at secretlab.ca> wrote:
> Currently, each of_device has a copy of the device tree node pointer in both
> .node, and in .dev.archdata.of_node (microblaze and powerpc) or
> .dev.archdata.prom_node (sparc).  Also, other architectures will be adding
> CONFIG_OF support, and they will also need a reference to the device tree
> node pointer from struct device.
>
> This series consolidates the device node pointer by adding .of_node to
> struct device (conditional on CONFIG_OF) and removing the archdata.of_node,
> archdata.prom_node and of_device.node users.  The pointer is moved out of
> dev_archdata and into struct device proper so that of_node doesn't need to
> get manually added to archdata for each architecture that enables CONFIG_OF.

This series is also available in my git tree:

git://git.secretlab.ca/git/linux-2.6 experimental-devicetree


More information about the Linuxppc-dev mailing list