diff options
author | David S. Miller <davem@davemloft.net> | 2008-12-05 04:21:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-05 21:15:03 -0500 |
commit | 6524036a1e5736a07466208362d83ddf31aae3ac (patch) | |
tree | dea250164424676bd19505adcbf6ae260559c403 /arch/sparc/kernel/prom.h | |
parent | 4aef8c53fe517542d8185b7d771f291865b49177 (diff) |
sparc: Move core of OF device tree building code into prom_common.c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/prom.h')
-rw-r--r-- | arch/sparc/kernel/prom.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/sparc/kernel/prom.h b/arch/sparc/kernel/prom.h index d14b4ae4fc57..dea8b91b6960 100644 --- a/arch/sparc/kernel/prom.h +++ b/arch/sparc/kernel/prom.h | |||
@@ -15,7 +15,20 @@ extern void irq_trans_init(struct device_node *dp); | |||
15 | 15 | ||
16 | extern unsigned int prom_unique_id; | 16 | extern unsigned int prom_unique_id; |
17 | 17 | ||
18 | extern struct device_node * __init create_node(phandle node, | 18 | static inline int is_root_node(const struct device_node *dp) |
19 | struct device_node *parent); | 19 | { |
20 | if (!dp) | ||
21 | return 0; | ||
20 | 22 | ||
23 | return (dp->parent == NULL); | ||
24 | } | ||
25 | |||
26 | extern char *build_path_component(struct device_node *dp); | ||
27 | |||
28 | extern struct device_node * __init prom_create_node(phandle node, | ||
29 | struct device_node *parent); | ||
30 | |||
31 | extern struct device_node * __init prom_build_tree(struct device_node *parent, | ||
32 | phandle node, | ||
33 | struct device_node ***nextp); | ||
21 | #endif /* __PROM_H */ | 34 | #endif /* __PROM_H */ |