]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fdt: Export the fdt_find_or_add_subnode() function
authorSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 00:58:49 +0000 (18:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 03:43:17 +0000 (04:43 +0100)
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>
common/fdt_support.c
include/fdt_support.h

index 3f641566b977aff76275656c86093051d2b1217c..46a15e72a0c98a6afc84b3cfb5ac7838310629ff 100644 (file)
@@ -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;
 
index 2e0adf3284cc76c43f049a8b7dc12105631863cf..9ada2e49bdaf7c57cbab33632d077b7a5f4f38f3 100644 (file)
@@ -64,6 +64,8 @@ static inline void fdt_fixup_crypto_node(void *blob, int sec_rev) {}
 int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose);
 #endif
 
+int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name);
+
 /**
  * Add board-specific data to the FDT before booting the OS.
  *