diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/prom_common.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/sparc/kernel/prom_common.c b/arch/sparc/kernel/prom_common.c index 4e9af593db49..ff7b591c8946 100644 --- a/arch/sparc/kernel/prom_common.c +++ b/arch/sparc/kernel/prom_common.c | |||
@@ -155,20 +155,12 @@ static struct property * __init build_one_prop(phandle node, char *prev, | |||
155 | p->value = prom_early_alloc(special_len); | 155 | p->value = prom_early_alloc(special_len); |
156 | memcpy(p->value, special_val, special_len); | 156 | memcpy(p->value, special_val, special_len); |
157 | } else { | 157 | } else { |
158 | #ifdef CONFIG_SPARC32 | ||
159 | if (prev == NULL) { | ||
160 | name = prom_firstprop(node, NULL); | ||
161 | } else { | ||
162 | name = prom_nextprop(node, prev, NULL); | ||
163 | } | ||
164 | #else | ||
165 | if (prev == NULL) { | 158 | if (prev == NULL) { |
166 | prom_firstprop(node, p->name); | 159 | name = prom_firstprop(node, p->name); |
167 | } else { | 160 | } else { |
168 | prom_nextprop(node, prev, p->name); | 161 | name = prom_nextprop(node, prev, p->name); |
169 | } | 162 | } |
170 | name = p->name; | 163 | |
171 | #endif | ||
172 | if (strlen(name) == 0) { | 164 | if (strlen(name) == 0) { |
173 | tmp = p; | 165 | tmp = p; |
174 | return NULL; | 166 | return NULL; |