From: Stephen Rothwell Date: Mon, 27 Nov 2006 18:18:54 +0000 (+0100) Subject: [POWERPC] spufs: we should only execute init_spu_base on cell X-Git-Tag: v2.6.20-rc1~34^2~40^2~8^2~41 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da06aa08d9f23e4f970d9a25a6e52f9a7736bfa2;p=linux-2.6 [POWERPC] spufs: we should only execute init_spu_base on cell Signed-off-by: Stephen Rothwell Signed-off-by: Arnd Bergmann --- diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index 841ed35980..bd7bffc3dd 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)