Thread (1 message) 1 message, 1 author, 2011-06-10

[PATCH v4 1/4] dt: check root nodes for match on of_platform_populate

From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-06-10 21:17:35
Also in: linux-devicetree

On Friday 10 June 2011 23:11:19 Grant Likely wrote:
quoted
Why doesn't of_platform_populate just call of_platform_bus_create on the
root node? That should normally take care of matching all children.
of_platform_bus_create creates a device for the 'bus' node, where
of_platform_populate() creates children as direct children of the
'parent' device; which I think is the behaviour wanted here.

Also, of_platform_bus_create checks for a compatible property on the bus
node, whereas of_platform_populate does not, and should not.
Ok, makes sense.

Thanks,

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help