diff options
Diffstat (limited to 'include/asm-powerpc/prom.h')
-rw-r--r-- | include/asm-powerpc/prom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h index 6845af93ba91..1122a9278afd 100644 --- a/include/asm-powerpc/prom.h +++ b/include/asm-powerpc/prom.h | |||
@@ -124,6 +124,9 @@ extern struct device_node *of_find_node_by_type(struct device_node *from, | |||
124 | dn = of_find_node_by_type(dn, type)) | 124 | dn = of_find_node_by_type(dn, type)) |
125 | extern struct device_node *of_find_compatible_node(struct device_node *from, | 125 | extern struct device_node *of_find_compatible_node(struct device_node *from, |
126 | const char *type, const char *compat); | 126 | const char *type, const char *compat); |
127 | #define for_each_compatible_node(dn, type, compatible) \ | ||
128 | for (dn = of_find_compatible_node(NULL, type, compatible); dn; \ | ||
129 | dn = of_find_compatible_node(dn, type, compatible)) | ||
127 | extern struct device_node *of_find_node_by_path(const char *path); | 130 | extern struct device_node *of_find_node_by_path(const char *path); |
128 | extern struct device_node *of_find_node_by_phandle(phandle handle); | 131 | extern struct device_node *of_find_node_by_phandle(phandle handle); |
129 | extern struct device_node *of_find_all_nodes(struct device_node *prev); | 132 | extern struct device_node *of_find_all_nodes(struct device_node *prev); |