summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-20 00:10:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 11:41:28 +0100
commit64c199dd29b7eed9def158afba2036fd2ebe905a (patch)
tree6a5d2ff97d2057f369157bdabe124874f4fdf6f8 /include
parentef317ef43d311c6769984e3f07d968abc4924b80 (diff)
downloadbarebox-64c199dd29b7eed9def158afba2036fd2ebe905a.tar.gz
barebox-64c199dd29b7eed9def158afba2036fd2ebe905a.tar.xz
of: Pass barebox internal format devicetree to of_get_fixed_tree
With this every devicetree is first converted to the barebox internal format before it's converted back to dtb again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/of.h b/include/of.h
index 2234dae408..fe9f65dc4a 100644
--- a/include/of.h
+++ b/include/of.h
@@ -7,7 +7,6 @@
int fdt_print(struct fdt_header *working_fdt, const char *pathp);
-struct fdt_header *of_get_fixed_tree(struct fdt_header *fdt);
int of_fix_tree(struct fdt_header *fdt);
int of_register_fixup(int (*fixup)(struct fdt_header *));
@@ -81,6 +80,8 @@ struct device_node *of_find_child_by_name(struct device_node *node, const char *
struct fdt_header *fdt_get_tree(void);
+struct fdt_header *of_get_fixed_tree(struct device_node *node);
+
#define device_node_for_nach_child(node, child) \
list_for_each_entry(child, &node->children, parent_list)