diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/xics.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/xics.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/pseries/xics.c b/arch/powerpc/platforms/pseries/xics.c index f0795faada91..896cbf340c42 100644 --- a/arch/powerpc/platforms/pseries/xics.c +++ b/arch/powerpc/platforms/pseries/xics.c | |||
@@ -576,7 +576,7 @@ static void __init xics_init_one_node(struct device_node *np, | |||
576 | * This happens to be the case so far but we are playing with fire... | 576 | * This happens to be the case so far but we are playing with fire... |
577 | * should be fixed one of these days. -BenH. | 577 | * should be fixed one of these days. -BenH. |
578 | */ | 578 | */ |
579 | ireg = get_property(np, "ibm,interrupt-server-ranges", NULL); | 579 | ireg = of_get_property(np, "ibm,interrupt-server-ranges", NULL); |
580 | 580 | ||
581 | /* Do that ever happen ? we'll know soon enough... but even good'old | 581 | /* Do that ever happen ? we'll know soon enough... but even good'old |
582 | * f80 does have that property .. | 582 | * f80 does have that property .. |
@@ -588,7 +588,7 @@ static void __init xics_init_one_node(struct device_node *np, | |||
588 | */ | 588 | */ |
589 | *indx = *ireg; | 589 | *indx = *ireg; |
590 | } | 590 | } |
591 | ireg = get_property(np, "reg", &ilen); | 591 | ireg = of_get_property(np, "reg", &ilen); |
592 | if (!ireg) | 592 | if (!ireg) |
593 | panic("xics_init_IRQ: can't find interrupt reg property"); | 593 | panic("xics_init_IRQ: can't find interrupt reg property"); |
594 | 594 | ||
@@ -640,7 +640,7 @@ static void __init xics_setup_8259_cascade(void) | |||
640 | break; | 640 | break; |
641 | if (strcmp(np->name, "pci") != 0) | 641 | if (strcmp(np->name, "pci") != 0) |
642 | continue; | 642 | continue; |
643 | addrp = get_property(np, "8259-interrupt-acknowledge", NULL); | 643 | addrp = of_get_property(np, "8259-interrupt-acknowledge", NULL); |
644 | if (addrp == NULL) | 644 | if (addrp == NULL) |
645 | continue; | 645 | continue; |
646 | naddr = of_n_addr_cells(np); | 646 | naddr = of_n_addr_cells(np); |
@@ -664,10 +664,11 @@ static struct device_node *cpuid_to_of_node(int cpu) | |||
664 | int i, len; | 664 | int i, len; |
665 | const u32 *intserv; | 665 | const u32 *intserv; |
666 | 666 | ||
667 | intserv = get_property(np, "ibm,ppc-interrupt-server#s", &len); | 667 | intserv = of_get_property(np, "ibm,ppc-interrupt-server#s", |
668 | &len); | ||
668 | 669 | ||
669 | if (!intserv) | 670 | if (!intserv) |
670 | intserv = get_property(np, "reg", &len); | 671 | intserv = of_get_property(np, "reg", &len); |
671 | 672 | ||
672 | i = len / sizeof(u32); | 673 | i = len / sizeof(u32); |
673 | 674 | ||
@@ -709,7 +710,7 @@ void __init xics_init_IRQ(void) | |||
709 | /* Find the server numbers for the boot cpu. */ | 710 | /* Find the server numbers for the boot cpu. */ |
710 | np = cpuid_to_of_node(boot_cpuid); | 711 | np = cpuid_to_of_node(boot_cpuid); |
711 | BUG_ON(!np); | 712 | BUG_ON(!np); |
712 | ireg = get_property(np, "ibm,ppc-interrupt-gserver#s", &ilen); | 713 | ireg = of_get_property(np, "ibm,ppc-interrupt-gserver#s", &ilen); |
713 | if (!ireg) | 714 | if (!ireg) |
714 | goto skip_gserver_check; | 715 | goto skip_gserver_check; |
715 | i = ilen / sizeof(int); | 716 | i = ilen / sizeof(int); |
@@ -725,7 +726,7 @@ void __init xics_init_IRQ(void) | |||
725 | default_server = hcpuid; | 726 | default_server = hcpuid; |
726 | default_distrib_server = ireg[j+1]; | 727 | default_distrib_server = ireg[j+1]; |
727 | 728 | ||
728 | isize = get_property(np, | 729 | isize = of_get_property(np, |
729 | "ibm,interrupt-server#-size", NULL); | 730 | "ibm,interrupt-server#-size", NULL); |
730 | if (isize) | 731 | if (isize) |
731 | interrupt_server_size = *isize; | 732 | interrupt_server_size = *isize; |