diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-09 23:19:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-19 11:48:17 +0100 |
commit | a2288e64b74b5df8a40309dd636ae2ce8c39b12b (patch) | |
tree | a59956d54e7eeadfffd00d5a18cef06aaa777d68 /include | |
parent | 517fcac5f02c8e26a600f1cf14c26af8265f3b29 (diff) | |
download | barebox-a2288e64b74b5df8a40309dd636ae2ce8c39b12b.tar.gz barebox-a2288e64b74b5df8a40309dd636ae2ce8c39b12b.tar.xz |
of: rename new_device_node to of_new_node and export it
of_new_node now takes the parent node and the name as argument and
creates a new node. This simplifies the caller and also makes the
function useful for others, so export it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 3679b01ea2..d3a310f2ff 100644 --- a/include/of.h +++ b/include/of.h @@ -107,6 +107,7 @@ int of_probe(void); int of_parse_dtb(struct fdt_header *fdt); void of_free(struct device_node *node); int of_unflatten_dtb(struct fdt_header *fdt); +struct device_node *of_new_node(struct device_node *parent, const char *name); struct property *of_new_property(struct device_node *node, const char *name, const void *data, int len); void of_delete_property(struct property *pp); |