diff options
author | Dave C Boutcher <sleddog@us.ibm.com> | 2006-01-12 17:09:29 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-13 05:11:57 -0500 |
commit | ecaa8b0ff326920c8a89d748382e1c1d8812676c (patch) | |
tree | 49027f063fee21f6b03f4b2ccd5c0b80b0aa4440 /include/asm-powerpc | |
parent | 088186ded490ced80758200cf8f906ed741df306 (diff) |
[PATCH] powerpc: Add of_find_property function
Add an of_find_property function that returns a struct property
given a property name. Then change the get_property function to
use that routine internally.
Signed-off-by: Dave Boutcher <sleddog@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-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 25d8d5974d19..5b2bd4eefb01 100644 --- a/include/asm-powerpc/prom.h +++ b/include/asm-powerpc/prom.h | |||
@@ -136,6 +136,9 @@ extern struct device_node *of_find_all_nodes(struct device_node *prev); | |||
136 | extern struct device_node *of_get_parent(const struct device_node *node); | 136 | extern struct device_node *of_get_parent(const struct device_node *node); |
137 | extern struct device_node *of_get_next_child(const struct device_node *node, | 137 | extern struct device_node *of_get_next_child(const struct device_node *node, |
138 | struct device_node *prev); | 138 | struct device_node *prev); |
139 | extern struct property *of_find_property(struct device_node *np, | ||
140 | const char *name, | ||
141 | int *lenp); | ||
139 | extern struct device_node *of_node_get(struct device_node *node); | 142 | extern struct device_node *of_node_get(struct device_node *node); |
140 | extern void of_node_put(struct device_node *node); | 143 | extern void of_node_put(struct device_node *node); |
141 | 144 | ||