[POWERPC] spufs: Refuse to load the module when not running on cell
authorArnd Bergmann <arnd.bergmann@de.ibm.com>
Mon, 4 Jun 2007 13:26:51 +0000 (23:26 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 7 Jun 2007 01:44:39 +0000 (11:44 +1000)
commit8f18a158192ef6dc63a572bdbbdf5613cfbbe2e4
tree18d5911fe8262d060fccd0b8b581a1b574aebb44
parent6291ed3c04d5c83c26e77d4fa47e06d0416be81d
[POWERPC] spufs: Refuse to load the module when not running on cell

As noticed by David Woodhouse, it's currently possible to mount
spufs on any machine, which means that it actually will get
mounted by fedora.
This refuses to load the module on platforms that have no
support for SPUs.

Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/inode.c