[POWERPC] get_property cleanups

Just another pass through arch/powerpc for old usages.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Stephen Rothwell
2007-04-29 16:29:08 +10:00
committed by Paul Mackerras
parent 8d1cea6e14
commit 12d371a69e
4 changed files with 15 additions and 14 deletions

View File

@ -230,7 +230,7 @@ static struct uic * __init uic_init_one(struct device_node *node)
memset(uic, 0, sizeof(*uic));
spin_lock_init(&uic->lock);
uic->of_node = of_node_get(node);
indexp = get_property(node, "cell-index", &len);
indexp = of_get_property(node, "cell-index", &len);
if (!indexp || (len != sizeof(u32))) {
printk(KERN_ERR "uic: Device node %s has missing or invalid "
"cell-index property\n", node->full_name);
@ -238,7 +238,7 @@ static struct uic * __init uic_init_one(struct device_node *node)
}
uic->index = *indexp;
dcrreg = get_property(node, "dcr-reg", &len);
dcrreg = of_get_property(node, "dcr-reg", &len);
if (!dcrreg || (len != 2*sizeof(u32))) {
printk(KERN_ERR "uic: Device node %s has missing or invalid "
"dcr-reg property\n", node->full_name);
@ -278,7 +278,7 @@ void __init uic_init_tree(void)
np = of_find_compatible_node(NULL, NULL, "ibm,uic");
while (np) {
interrupts = get_property(np, "interrupts", NULL);
interrupts = of_get_property(np, "interrupts", NULL);
if (! interrupts)
break;
@ -297,7 +297,7 @@ void __init uic_init_tree(void)
/* The scan again for cascaded UICs */
np = of_find_compatible_node(NULL, NULL, "ibm,uic");
while (np) {
interrupts = get_property(np, "interrupts", NULL);
interrupts = of_get_property(np, "interrupts", NULL);
if (interrupts) {
/* Secondary UIC */
int cascade_virq;