From: Michael Ellerman Date: Mon, 15 Jun 2015 05:01:32 +0000 (+1000) Subject: powerpc/powernv: pnv_init_idle_states() should only run on powernv X-Git-Tag: Ubuntu-5.13.0-19.19~17771^2~12 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4bece972fce6e597cb513bdcae4a04e14fc0dd81;p=mirror_ubuntu-jammy-kernel.git 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 Signed-off-by: Michael Ellerman --- 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 #include +#include #include #include #include @@ -289,5 +290,4 @@ out_free: out: return 0; } - -subsys_initcall(pnv_init_idle_states); +machine_subsys_initcall(powernv, pnv_init_idle_states);