浏览代码

[POWERPC] spufs: we should only execute init_spu_base on cell

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Stephen Rothwell 18 年之前
父节点
当前提交
da06aa08d9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/powerpc/platforms/cell/spu_base.c

+ 3 - 0
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)