powerpc/powernv: pnv_init_idle_states() should only run on powernv
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 15 Jun 2015 05:01:32 +0000 (15:01 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 15 Jun 2015 06:45:12 +0000 (16:45 +1000)
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>
arch/powerpc/platforms/powernv/idle.c

index bd39a120bd600a06a7fffe9c26f8377792e9102b..59d735d2e5c053853d0a1795a54787a006b42130 100644 (file)
@@ -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);