[PATCH 07/22] OF: base: sync of_find_node_by_path with linux OF API
Sascha Hauer
s.hauer at pengutronix.de
Tue Jun 18 16:13:03 EDT 2013
On Tue, Jun 18, 2013 at 07:29:52PM +0200, Sebastian Hesselbarth wrote:
> Barebox of_find_node_by_path requires a node to be passed as start node
> to start searching. Linux OF API does not pass this node and no current
> user of it in barebox is passing anything else than the root node.
> Therefore, the device_node argument is removed and all current users of
> that function are updated to reflect the API change.
This is a patch I'm not quite happy with. devicetree is such a nice data
structure that it can be useful for other purposes than just a
singular tree for describing the hardware layout.
Maybe we should rename the current implementatiion to
of_find_node_by_path_from() and add a of_find_node_by_path() which calls
this with root_node as first argument?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list