diff options
-rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 2cb082871210..38b631ceaec9 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -324,15 +324,18 @@ static void __init pSeries_discover_pic(void) | |||
324 | ppc64_interrupt_controller = IC_INVALID; | 324 | ppc64_interrupt_controller = IC_INVALID; |
325 | for (np = NULL; (np = of_find_node_by_name(np, "interrupt-controller"));) { | 325 | for (np = NULL; (np = of_find_node_by_name(np, "interrupt-controller"));) { |
326 | typep = (char *)get_property(np, "compatible", NULL); | 326 | typep = (char *)get_property(np, "compatible", NULL); |
327 | if (strstr(typep, "open-pic")) | 327 | if (strstr(typep, "open-pic")) { |
328 | ppc64_interrupt_controller = IC_OPEN_PIC; | 328 | ppc64_interrupt_controller = IC_OPEN_PIC; |
329 | else if (strstr(typep, "ppc-xicp")) | 329 | break; |
330 | } else if (strstr(typep, "ppc-xicp")) { | ||
330 | ppc64_interrupt_controller = IC_PPC_XIC; | 331 | ppc64_interrupt_controller = IC_PPC_XIC; |
331 | else | 332 | break; |
332 | printk("pSeries_discover_pic: failed to recognize" | 333 | } |
333 | " interrupt-controller\n"); | ||
334 | break; | ||
335 | } | 334 | } |
335 | if (ppc64_interrupt_controller == IC_INVALID) | ||
336 | printk("pSeries_discover_pic: failed to recognize" | ||
337 | " interrupt-controller\n"); | ||
338 | |||
336 | } | 339 | } |
337 | 340 | ||
338 | static void pSeries_mach_cpu_die(void) | 341 | static void pSeries_mach_cpu_die(void) |