aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/kernel/prom.h2
-rw-r--r--arch/sparc/kernel/prom_32.c6
-rw-r--r--arch/sparc/kernel/prom_64.c6
-rw-r--r--arch/sparc/kernel/prom_common.c1
4 files changed, 7 insertions, 8 deletions
diff --git a/arch/sparc/kernel/prom.h b/arch/sparc/kernel/prom.h
index 49925101f8f8..2575cdbbed6f 100644
--- a/arch/sparc/kernel/prom.h
+++ b/arch/sparc/kernel/prom.h
@@ -13,4 +13,6 @@ extern void * prom_early_alloc(unsigned long size);
13extern void irq_trans_init(struct device_node *dp); 13extern void irq_trans_init(struct device_node *dp);
14#endif 14#endif
15 15
16extern unsigned int prom_unique_id;
17
16#endif /* __PROM_H */ 18#endif /* __PROM_H */
diff --git a/arch/sparc/kernel/prom_32.c b/arch/sparc/kernel/prom_32.c
index ba3c55186823..c34888a21b2d 100644
--- a/arch/sparc/kernel/prom_32.c
+++ b/arch/sparc/kernel/prom_32.c
@@ -196,8 +196,6 @@ static char * __init build_full_name(struct device_node *dp)
196 return n; 196 return n;
197} 197}
198 198
199static unsigned int unique_id;
200
201static struct property * __init build_one_prop(phandle node, char *prev, char *special_name, void *special_val, int special_len) 199static struct property * __init build_one_prop(phandle node, char *prev, char *special_name, void *special_val, int special_len)
202{ 200{
203 static struct property *tmp = NULL; 201 static struct property *tmp = NULL;
@@ -211,7 +209,7 @@ static struct property * __init build_one_prop(phandle node, char *prev, char *s
211 tmp = NULL; 209 tmp = NULL;
212 } else { 210 } else {
213 p = prom_early_alloc(sizeof(struct property) + 32); 211 p = prom_early_alloc(sizeof(struct property) + 32);
214 p->unique_id = unique_id++; 212 p->unique_id = prom_unique_id++;
215 } 213 }
216 214
217 p->name = (char *) (p + 1); 215 p->name = (char *) (p + 1);
@@ -286,7 +284,7 @@ static struct device_node * __init create_node(phandle node)
286 return NULL; 284 return NULL;
287 285
288 dp = prom_early_alloc(sizeof(*dp)); 286 dp = prom_early_alloc(sizeof(*dp));
289 dp->unique_id = unique_id++; 287 dp->unique_id = prom_unique_id++;
290 288
291 kref_init(&dp->kref); 289 kref_init(&dp->kref);
292 290
diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c
index d745b9f44d2d..61cc967b149d 100644
--- a/arch/sparc/kernel/prom_64.c
+++ b/arch/sparc/kernel/prom_64.c
@@ -399,8 +399,6 @@ static char * __init build_full_name(struct device_node *dp)
399 return n; 399 return n;
400} 400}
401 401
402static unsigned int unique_id;
403
404static struct property * __init build_one_prop(phandle node, char *prev, char *special_name, void *special_val, int special_len) 402static struct property * __init build_one_prop(phandle node, char *prev, char *special_name, void *special_val, int special_len)
405{ 403{
406 static struct property *tmp = NULL; 404 static struct property *tmp = NULL;
@@ -412,7 +410,7 @@ static struct property * __init build_one_prop(phandle node, char *prev, char *s
412 tmp = NULL; 410 tmp = NULL;
413 } else { 411 } else {
414 p = prom_early_alloc(sizeof(struct property) + 32); 412 p = prom_early_alloc(sizeof(struct property) + 32);
415 p->unique_id = unique_id++; 413 p->unique_id = prom_unique_id++;
416 } 414 }
417 415
418 p->name = (char *) (p + 1); 416 p->name = (char *) (p + 1);
@@ -483,7 +481,7 @@ static struct device_node * __init create_node(phandle node, struct device_node
483 return NULL; 481 return NULL;
484 482
485 dp = prom_early_alloc(sizeof(*dp)); 483 dp = prom_early_alloc(sizeof(*dp));
486 dp->unique_id = unique_id++; 484 dp->unique_id = prom_unique_id++;
487 dp->parent = parent; 485 dp->parent = parent;
488 486
489 kref_init(&dp->kref); 487 kref_init(&dp->kref);
diff --git a/arch/sparc/kernel/prom_common.c b/arch/sparc/kernel/prom_common.c
index ded8c628811f..a23180801014 100644
--- a/arch/sparc/kernel/prom_common.c
+++ b/arch/sparc/kernel/prom_common.c
@@ -119,3 +119,4 @@ int of_find_in_proplist(const char *list, const char *match, int len)
119} 119}
120EXPORT_SYMBOL(of_find_in_proplist); 120EXPORT_SYMBOL(of_find_in_proplist);
121 121
122unsigned int prom_unique_id;