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>
* 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;
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
*