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-rc2~6^2~13^2~13^2~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=da06aa08d9f23e4f970d9a25a6e52f9a7736bfa2;p=linux-2.6-omap-h63xx.git [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 841ed359802..bd7bffc3ddd 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)