diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 72cd503d3d33..6f62af597291 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -317,7 +317,9 @@ void __init pmac_setup_arch(void) | |||
317 | } | 317 | } |
318 | 318 | ||
319 | /* See if newworld or oldworld */ | 319 | /* See if newworld or oldworld */ |
320 | ic = of_find_node_by_name(NULL, "interrupt-controller"); | 320 | for (ic = NULL; (ic = of_find_all_nodes(ic)) != NULL; ) |
321 | if (get_property(ic, "interrupt-controller", NULL)) | ||
322 | break; | ||
321 | pmac_newworld = (ic != NULL); | 323 | pmac_newworld = (ic != NULL); |
322 | if (ic) | 324 | if (ic) |
323 | of_node_put(ic); | 325 | of_node_put(ic); |