git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
of: unify phandle name in struct device_node
[safe/jmp/linux-2.6]
/
arch
/
sparc
/
kernel
/
prom_common.c
diff --git
a/arch/sparc/kernel/prom_common.c
b/arch/sparc/kernel/prom_common.c
index
d80a65d
..
5832e13
100644
(file)
--- a/
arch/sparc/kernel/prom_common.c
+++ b/
arch/sparc/kernel/prom_common.c
@@
-42,7
+42,7
@@
struct device_node *of_find_node_by_phandle(phandle handle)
struct device_node *np;
for (np = allnodes; np; np = np->allnext)
struct device_node *np;
for (np = allnodes; np; np = np->allnext)
- if (np->
nod
e == handle)
+ if (np->
phandl
e == handle)
break;
return np;
break;
return np;
@@
-89,7
+89,7
@@
int of_set_property(struct device_node *dp, const char *name, void *val, int len
void *old_val = prop->value;
int ret;
void *old_val = prop->value;
int ret;
- ret = prom_setprop(dp->
nod
e, name, val, len);
+ ret = prom_setprop(dp->
phandl
e, name, val, len);
err = -EINVAL;
if (ret >= 0) {
err = -EINVAL;
if (ret >= 0) {
@@
-236,7
+236,7
@@
static struct device_node * __init prom_create_node(phandle node,
dp->name = get_one_property(node, "name");
dp->type = get_one_property(node, "device_type");
dp->name = get_one_property(node, "name");
dp->type = get_one_property(node, "device_type");
- dp->
nod
e = node;
+ dp->
phandl
e = node;
dp->properties = build_prop_list(node);
dp->properties = build_prop_list(node);
@@
-313,7
+313,7
@@
void __init prom_build_devicetree(void)
nextp = &allnodes->allnext;
allnodes->child = prom_build_tree(allnodes,
nextp = &allnodes->allnext;
allnodes->child = prom_build_tree(allnodes,
- prom_getchild(allnodes->
nod
e),
+ prom_getchild(allnodes->
phandl
e),
&nextp);
of_console_init();
&nextp);
of_console_init();