powerpc/pseries: Call pseries_kexec_setup only on pseries
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Jun 2008 09:14:35 +0000 (19:14 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 30 Jun 2008 12:30:57 +0000 (22:30 +1000)
The pseries_kexec_setup function overwrites some ppc_md
pointers, so make sure it only gets called when running on
the right architecture.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/kexec.c

index e9dd5fe081c94bd66fad46ac416c0504699a0ca6..53cbd53d8740537d86b7fe5ab13e19dfcdcecd75 100644 (file)
@@ -70,4 +70,4 @@ static int __init pseries_kexec_setup(void)
 
        return 0;
 }
-__initcall(pseries_kexec_setup);
+machine_device_initcall(pseries, pseries_kexec_setup);