[PATCH] powerpc/powernv: pnv_init_idle_states() should only run on powernv

Shreyas B Prabhu shreyas at linux.vnet.ibm.com
Mon Jun 15 02:28:01 AEST 2015



On 06/12/2015 03:30 PM, Michael Ellerman wrote:
> Although this init call checks for device tree properties before doing
> anything, it should still only run on powernv machines.
> 
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> ---
>  arch/powerpc/platforms/powernv/idle.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/powernv/idle.c
> index bd39a120bd60..e8168cf13812 100644
> --- a/arch/powerpc/platforms/powernv/idle.c
> +++ b/arch/powerpc/platforms/powernv/idle.c
> @@ -289,5 +289,4 @@ out_free:
>  out:
>  	return 0;
>  }
> -
> -subsys_initcall(pnv_init_idle_states);
> +machine_subsys_initcall(powernv, pnv_init_idle_states);
> 

<asm/machdep.h> needs to be included, otherwise I get a build error.

With that,
Reviewed-by: Shreyas B Prabhu <shreyas at linux.vnet.ibm.com>



More information about the Linuxppc-dev mailing list