diff options
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/prom.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/arch/sparc64/kernel/prom.c b/arch/sparc64/kernel/prom.c index 4d6fb07f047f..a1ccc00c7958 100644 --- a/arch/sparc64/kernel/prom.c +++ b/arch/sparc64/kernel/prom.c | |||
@@ -32,10 +32,7 @@ | |||
32 | 32 | ||
33 | static struct device_node *allnodes; | 33 | static struct device_node *allnodes; |
34 | 34 | ||
35 | /* use when traversing tree through the allnext, child, sibling, | 35 | extern rwlock_t devtree_lock; /* temporary while merging */ |
36 | * or parent members of struct device_node. | ||
37 | */ | ||
38 | static DEFINE_RWLOCK(devtree_lock); | ||
39 | 36 | ||
40 | struct device_node *of_get_parent(const struct device_node *node) | 37 | struct device_node *of_get_parent(const struct device_node *node) |
41 | { | 38 | { |
@@ -135,23 +132,6 @@ struct device_node *of_find_compatible_node(struct device_node *from, | |||
135 | } | 132 | } |
136 | EXPORT_SYMBOL(of_find_compatible_node); | 133 | EXPORT_SYMBOL(of_find_compatible_node); |
137 | 134 | ||
138 | struct property *of_find_property(const struct device_node *np, | ||
139 | const char *name, | ||
140 | int *lenp) | ||
141 | { | ||
142 | struct property *pp; | ||
143 | |||
144 | for (pp = np->properties; pp != 0; pp = pp->next) { | ||
145 | if (strcasecmp(pp->name, name) == 0) { | ||
146 | if (lenp != 0) | ||
147 | *lenp = pp->length; | ||
148 | break; | ||
149 | } | ||
150 | } | ||
151 | return pp; | ||
152 | } | ||
153 | EXPORT_SYMBOL(of_find_property); | ||
154 | |||
155 | int of_getintprop_default(struct device_node *np, const char *name, int def) | 135 | int of_getintprop_default(struct device_node *np, const char *name, int def) |
156 | { | 136 | { |
157 | struct property *prop; | 137 | struct property *prop; |