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-Url: https://git.stricted.de/?a=commitdiff_plain;h=da06aa08d9f23e4f970d9a25a6e52f9a7736bfa2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 841ed359802c..bd7bffc3ddd0 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)