diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-11-27 19:18:54 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 10:41:11 +0100 |
commit | da06aa08d9f23e4f970d9a25a6e52f9a7736bfa2 (patch) | |
tree | fdd94fbd5ec4dbcefbc62ea1906f9367ebe8f345 /arch | |
parent | [POWERPC] spufs: always send sigtrap on breakpoint (diff) | |
download | linux-da06aa08d9f23e4f970d9a25a6e52f9a7736bfa2.tar.xz linux-da06aa08d9f23e4f970d9a25a6e52f9a7736bfa2.zip |
[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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/spu_base.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |