]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
arm/fdt: Export device_tree_for_each_node
authorShannon Zhao <zhaoshenglong@huawei.com>
Wed, 2 Mar 2016 07:37:00 +0000 (08:37 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:33 +0000 (16:32 +0000)
This function will be used by ACPI booting. Export it so that it can be
used by other files.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/arm/bootfdt.c
xen/include/xen/device_tree.h

index 74d208b5ebf6c42509ea1afa2966229d4dcc3f20..8a1401520f735704b4cc05e370480e97c1420066 100644 (file)
@@ -85,9 +85,9 @@ static u32 __init device_tree_get_u32(const void *fdt, int node,
  * Returns 0 if all nodes were iterated over successfully.  If @func
  * returns a value different from 0, that value is returned immediately.
  */
-static int __init device_tree_for_each_node(const void *fdt,
-                                            device_tree_node_func func,
-                                            void *data)
+int __init device_tree_for_each_node(const void *fdt,
+                                     device_tree_node_func func,
+                                     void *data)
 {
     int node;
     int depth;
index cf31e502859a4f6d8e1d597c41aae8547befae43..e3fe77c9658f25d64e9f17f589d65d59f99e2876 100644 (file)
@@ -173,6 +173,10 @@ typedef int (*device_tree_node_func)(const void *fdt,
 
 extern const void *device_tree_flattened;
 
+int device_tree_for_each_node(const void *fdt,
+                                     device_tree_node_func func,
+                                     void *data);
+
 /**
  * dt_unflatten_host_device_tree - Unflatten the host device tree
  *