From db9c748453bb224a5e64bb54cdb0852a20b0b11d Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Wed, 20 Jun 2007 15:17:29 +1000 Subject: [PATCH] --- yaml --- r: 57891 b: refs/heads/master c: c5f226c7e95bf318879fb6ae02fc0dfb0f6d408c h: refs/heads/master i: 57889: 1f7e2a2a28d091f05d1e5df5b61cd5ff00b29fca 57887: d65249bcafb2e31192a02d7e9e6aa6f104c40101 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/powermac/setup.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 55e906e66beb..9c25c14e8a68 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9ba4ace39fdfe22268daca9f28c5df384ae462cf +refs/heads/master: c5f226c7e95bf318879fb6ae02fc0dfb0f6d408c diff --git a/trunk/arch/powerpc/platforms/powermac/setup.c b/trunk/arch/powerpc/platforms/powermac/setup.c index 956571526a57..7ccb9236e8b4 100644 --- a/trunk/arch/powerpc/platforms/powermac/setup.c +++ b/trunk/arch/powerpc/platforms/powermac/setup.c @@ -454,6 +454,9 @@ static int initializing = 1; static int pmac_late_init(void) { + if (!machine_is(powermac)) + return -ENODEV; + initializing = 0; /* this is udbg (which is __init) and we can later use it during * cpu hotplug (in smp_core99_kick_cpu) */