diff options
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/prom.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h index 44bcc83267f3..eb75d3cbcf4c 100644 --- a/include/asm-sparc64/prom.h +++ b/include/asm-sparc64/prom.h | |||
@@ -65,6 +65,16 @@ static inline void set_node_proc_entry(struct device_node *dn, struct proc_dir_e | |||
65 | dn->pde = de; | 65 | dn->pde = de; |
66 | } | 66 | } |
67 | 67 | ||
68 | extern struct device_node *of_find_node_by_name(struct device_node *from, | ||
69 | const char *name); | ||
70 | #define for_each_node_by_name(dn, name) \ | ||
71 | for (dn = of_find_node_by_name(NULL, name); dn; \ | ||
72 | dn = of_find_node_by_name(dn, name)) | ||
73 | extern struct device_node *of_find_node_by_type(struct device_node *from, | ||
74 | const char *type); | ||
75 | #define for_each_node_by_type(dn, type) \ | ||
76 | for (dn = of_find_node_by_type(NULL, type); dn; \ | ||
77 | dn = of_find_node_by_type(dn, type)) | ||
68 | extern struct device_node *of_find_node_by_path(const char *path); | 78 | extern struct device_node *of_find_node_by_path(const char *path); |
69 | extern struct device_node *of_get_parent(const struct device_node *node); | 79 | extern struct device_node *of_get_parent(const struct device_node *node); |
70 | extern struct device_node *of_get_next_child(const struct device_node *node, | 80 | extern struct device_node *of_get_next_child(const struct device_node *node, |