Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123369
b: refs/heads/master
c: e5ff0fe
h: refs/heads/master
i:
  123367: e6ed837
v: v3
  • Loading branch information
David S. Miller committed Dec 6, 2008
1 parent eed7250 commit c70d619
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5fce09c6f636449d6df971971af1bd4328a21890
refs/heads/master: e5ff0fe31d69e716f2599bcfb297ca3757e957c5
2 changes: 2 additions & 0 deletions trunk/arch/sparc/kernel/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ extern void * prom_early_alloc(unsigned long size);
extern void irq_trans_init(struct device_node *dp);
#endif

extern unsigned int prom_unique_id;

#endif /* __PROM_H */
6 changes: 2 additions & 4 deletions trunk/arch/sparc/kernel/prom_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ static char * __init build_full_name(struct device_node *dp)
return n;
}

static unsigned int unique_id;

static struct property * __init build_one_prop(phandle node, char *prev, char *special_name, void *special_val, int special_len)
{
static struct property *tmp = NULL;
Expand All @@ -211,7 +209,7 @@ static struct property * __init build_one_prop(phandle node, char *prev, char *s
tmp = NULL;
} else {
p = prom_early_alloc(sizeof(struct property) + 32);
p->unique_id = unique_id++;
p->unique_id = prom_unique_id++;
}

p->name = (char *) (p + 1);
Expand Down Expand Up @@ -286,7 +284,7 @@ static struct device_node * __init create_node(phandle node)
return NULL;

dp = prom_early_alloc(sizeof(*dp));
dp->unique_id = unique_id++;
dp->unique_id = prom_unique_id++;

kref_init(&dp->kref);

Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/sparc/kernel/prom_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,6 @@ static char * __init build_full_name(struct device_node *dp)
return n;
}

static unsigned int unique_id;

static struct property * __init build_one_prop(phandle node, char *prev, char *special_name, void *special_val, int special_len)
{
static struct property *tmp = NULL;
Expand All @@ -412,7 +410,7 @@ static struct property * __init build_one_prop(phandle node, char *prev, char *s
tmp = NULL;
} else {
p = prom_early_alloc(sizeof(struct property) + 32);
p->unique_id = unique_id++;
p->unique_id = prom_unique_id++;
}

p->name = (char *) (p + 1);
Expand Down Expand Up @@ -483,7 +481,7 @@ static struct device_node * __init create_node(phandle node, struct device_node
return NULL;

dp = prom_early_alloc(sizeof(*dp));
dp->unique_id = unique_id++;
dp->unique_id = prom_unique_id++;
dp->parent = parent;

kref_init(&dp->kref);
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sparc/kernel/prom_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,4 @@ int of_find_in_proplist(const char *list, const char *match, int len)
}
EXPORT_SYMBOL(of_find_in_proplist);

unsigned int prom_unique_id;

0 comments on commit c70d619

Please sign in to comment.