git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
arch
/
ppc
/
syslib
/
prom.c
diff --git
a/arch/ppc/syslib/prom.c
b/arch/ppc/syslib/prom.c
index
1ddb0c0
..
af98150
100644
(file)
--- a/
arch/ppc/syslib/prom.c
+++ b/
arch/ppc/syslib/prom.c
@@
-126,7
+126,7
@@
finish_device_tree(void)
/* All newworld pmac machines and CHRPs now use the interrupt tree */
for (np = allnodes; np != NULL; np = np->allnext) {
/* All newworld pmac machines and CHRPs now use the interrupt tree */
for (np = allnodes; np != NULL; np = np->allnext) {
- if (get_property(np, "interrupt-parent",
NULL
)) {
+ if (get_property(np, "interrupt-parent",
0
)) {
use_of_interrupt_tree = 1;
break;
}
use_of_interrupt_tree = 1;
break;
}
@@
-181,8
+181,8
@@
finish_node(struct device_node *np, unsigned long mem_start,
struct device_node *child;
int *ip;
struct device_node *child;
int *ip;
- np->name = get_property(np, "name",
NULL
);
- np->type = get_property(np, "device_type",
NULL
);
+ np->name = get_property(np, "name",
0
);
+ np->type = get_property(np, "device_type",
0
);
if (!np->name)
np->name = "<NULL>";
if (!np->name)
np->name = "<NULL>";
@@
-197,10
+197,10
@@
finish_node(struct device_node *np, unsigned long mem_start,
mem_start = finish_node_interrupts(np, mem_start);
/* Look for #address-cells and #size-cells properties. */
mem_start = finish_node_interrupts(np, mem_start);
/* Look for #address-cells and #size-cells properties. */
- ip = (int *) get_property(np, "#address-cells",
NULL
);
+ ip = (int *) get_property(np, "#address-cells",
0
);
if (ip != NULL)
naddrc = *ip;
if (ip != NULL)
naddrc = *ip;
- ip = (int *) get_property(np, "#size-cells",
NULL
);
+ ip = (int *) get_property(np, "#size-cells",
0
);
if (ip != NULL)
nsizec = *ip;
if (ip != NULL)
nsizec = *ip;
@@
-501,7
+501,7
@@
prom_n_addr_cells(struct device_node* np)
do {
if (np->parent)
np = np->parent;
do {
if (np->parent)
np = np->parent;
- ip = (int *) get_property(np, "#address-cells",
NULL
);
+ ip = (int *) get_property(np, "#address-cells",
0
);
if (ip != NULL)
return *ip;
} while (np->parent);
if (ip != NULL)
return *ip;
} while (np->parent);
@@
-516,7
+516,7
@@
prom_n_size_cells(struct device_node* np)
do {
if (np->parent)
np = np->parent;
do {
if (np->parent)
np = np->parent;
- ip = (int *) get_property(np, "#size-cells",
NULL
);
+ ip = (int *) get_property(np, "#size-cells",
0
);
if (ip != NULL)
return *ip;
} while (np->parent);
if (ip != NULL)
return *ip;
} while (np->parent);
@@
-836,7
+836,7
@@
find_devices(const char *name)
prevp = &np->next;
}
}
prevp = &np->next;
}
}
- *prevp =
NULL
;
+ *prevp =
0
;
return head;
}
return head;
}
@@
-855,7
+855,7
@@
find_type_devices(const char *type)
prevp = &np->next;
}
}
prevp = &np->next;
}
}
- *prevp =
NULL
;
+ *prevp =
0
;
return head;
}
return head;
}
@@
-872,7
+872,7
@@
find_all_nodes(void)
*prevp = np;
prevp = &np->next;
}
*prevp = np;
prevp = &np->next;
}
- *prevp =
NULL
;
+ *prevp =
0
;
return head;
}
return head;
}
@@
-934,7
+934,7
@@
find_compatible_devices(const char *type, const char *compat)
prevp = &np->next;
}
}
prevp = &np->next;
}
}
- *prevp =
NULL
;
+ *prevp =
0
;
return head;
}
return head;
}
@@
-1159,7
+1159,7
@@
get_property(struct device_node *np, const char *name, int *lenp)
*lenp = pp->length;
return pp->value;
}
*lenp = pp->length;
return pp->value;
}
- return
NULL
;
+ return
0
;
}
/*
}
/*