summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-23 18:58:49 -0600
committerSimon Glass <sjg@chromium.org>2014-11-21 04:43:17 +0100
commita9e8e29101adcb0bfa1c39baba5fce6b9848678d (patch)
treeecd51764dc3cf52f448b55212f2171775b9a91c7 /common
parent4ba98dc269d6a7731549669587784b3a5ae637f3 (diff)
downloadblackbird-obmc-uboot-a9e8e29101adcb0bfa1c39baba5fce6b9848678d.tar.gz
blackbird-obmc-uboot-a9e8e29101adcb0bfa1c39baba5fce6b9848678d.zip
fdt: Export the fdt_find_or_add_subnode() function
This function is useful for ensuring that a node exists. Export it so it can be used more widely. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'common')
-rw-r--r--common/fdt_support.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 3f641566b9..46a15e72a0 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -113,7 +113,8 @@ int fdt_find_and_setprop(void *fdt, const char *node, const char *prop,
}
/**
- * fdt_find_or_add_subnode - find or possibly add a subnode of a given node
+ * fdt_find_or_add_subnode() - find or possibly add a subnode of a given node
+ *
* @fdt: pointer to the device tree blob
* @parentoffset: structure block offset of a node
* @name: name of the subnode to locate
@@ -121,8 +122,7 @@ int fdt_find_and_setprop(void *fdt, const char *node, const char *prop,
* fdt_subnode_offset() finds a subnode of the node with a given name.
* If the subnode does not exist, it will be created.
*/
-static int fdt_find_or_add_subnode(void *fdt, int parentoffset,
- const char *name)
+int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name)
{
int offset;
OpenPOWER on IntegriCloud