From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-Id: <20061127182430.020713000@arndb.de> References: <20061127181851.796747000@arndb.de> Date: Mon, 27 Nov 2006 19:18:54 +0100 From: Arnd Bergmann To: Paul Mackerras Subject: [POWERPC 3/9] spufs: we should only execute init_spu_base on cell Cc: Arnd Bergmann , linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org, Stephen Rothwell List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Stephen Rothwell 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 841ed35..bd7bffc 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) -- 1.4.4 --