diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-22 03:33:54 +0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-24 10:15:04 +0400 |
commit | aaf7cec2769942035985716452107fc5ba0b11f6 (patch) | |
tree | 4f4bc5278ef41e016b97b6860d30fa773db7fee2 /include/asm-sparc64/prom.h | |
parent | 372b07bb5a13f8a1b8a3ce49cd76d39a79dbd3bd (diff) | |
download | linux-aaf7cec2769942035985716452107fc5ba0b11f6.tar.xz |
[SPARC64]: Add of_find_node_by_{name,type}().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/prom.h')
-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 dn->pde = de; } +extern struct device_node *of_find_node_by_name(struct device_node *from, + const char *name); +#define for_each_node_by_name(dn, name) \ + for (dn = of_find_node_by_name(NULL, name); dn; \ + dn = of_find_node_by_name(dn, name)) +extern struct device_node *of_find_node_by_type(struct device_node *from, + const char *type); +#define for_each_node_by_type(dn, type) \ + for (dn = of_find_node_by_type(NULL, type); dn; \ + dn = of_find_node_by_type(dn, type)) extern struct device_node *of_find_node_by_path(const char *path); extern struct device_node *of_get_parent(const struct device_node *node); extern struct device_node *of_get_next_child(const struct device_node *node, |