diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-27 08:45:33 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-27 08:45:33 -0400 |
commit | bfab1019b7e8b499dfc471a0dfc98b587420dda9 (patch) | |
tree | 79e80b9a77815fc7f4a70445276b99183b75e0fe | |
parent | 6316222ea050d469c3155881d9dee2c7671d9fef (diff) |
powerpc: Fix new-world powermac detection
My G5 was being reported as an OldWorld in /proc/cpuinfo, which is
obviously not right... :)
Signed-off-by: Paul Mackerras <paulus@samba.org>
-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); |