summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMichael Ellerman2015-06-15 07:01:32 +0200
committerMichael Ellerman2015-06-15 08:45:12 +0200
commit4bece972fce6e597cb513bdcae4a04e14fc0dd81 (patch)
treea2ba37c023975a83f62bee7aed3df374a26db40e /arch/powerpc
parentmacintosh/nvram: Remove as unused (diff)
downloadkernel-qcow2-linux-4bece972fce6e597cb513bdcae4a04e14fc0dd81.tar.gz
kernel-qcow2-linux-4bece972fce6e597cb513bdcae4a04e14fc0dd81.tar.xz
kernel-qcow2-linux-4bece972fce6e597cb513bdcae4a04e14fc0dd81.zip
powerpc/powernv: pnv_init_idle_states() should only run on powernv
Although this init call checks for device tree properties before doing anything, it should still only run on powernv machines. Reviewed-by: Shreyas B Prabhu <shreyas@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/powernv/idle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/powernv/idle.c
index bd39a120bd60..59d735d2e5c0 100644
--- a/arch/powerpc/platforms/powernv/idle.c
+++ b/arch/powerpc/platforms/powernv/idle.c
@@ -17,6 +17,7 @@
#include <linux/cpu.h>
#include <asm/firmware.h>
+#include <asm/machdep.h>
#include <asm/opal.h>
#include <asm/cputhreads.h>
#include <asm/cpuidle.h>
@@ -289,5 +290,4 @@ out_free:
out:
return 0;
}
-
-subsys_initcall(pnv_init_idle_states);
+machine_subsys_initcall(powernv, pnv_init_idle_states);