Subject: Re: [POWERPC] We should only execute init_spu_base on cell

From: Arnd Bergmann <[email-masked]>
Date: Mon, 27 Nov 2006 11:29:41 +0100

On Monday 27 November 2006 07:59, Stephen Rothwell wrote:
> 
> Signed-off-by: Stephen Rothwell <[email-masked]>

Acked-by: Arnd Bergmann <[email-masked]>

> diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
> index 841ed35..bd7bffc 100644
> --- a/arch/powerpc/platforms/cell/spu_base.c
> +++ b/arch/powerpc/platforms/cell/spu_base.c
> @@ -663,6 +663,9 @@ static int __init init_spu_base(void)
>  {
>  	int i, ret;
>  
> +	if (!spu_management_ops)
> +		return 0;
> +
>  	/* create sysdev class for spus */
>  	ret = sysdev_class_register(&spu_sysdev_class);
>  	if (ret)

Looks good, thanks.

	Arnd <><