Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pseries: Call pseries_kexec_setup only on pseries

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>

authored by

Arnd Bergmann and committed by
Paul Mackerras
cf207601 aee10c61

+1 -1
+1 -1
arch/powerpc/platforms/pseries/kexec.c
··· 70 70 71 71 return 0; 72 72 } 73 - __initcall(pseries_kexec_setup); 73 + machine_device_initcall(pseries, pseries_kexec_setup);