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