[POWERPC] ps3: always make sure we're running on a PS3
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Thu, 22 Feb 2007 15:43:12 +0000 (16:43 +0100)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 Mar 2007 04:03:23 +0000 (15:03 +1100)
commit8170f524894b17a3f36351fe0e1a3fb6aca733ee
tree0cbc94fe9c15f9a17a37895ddd525926d1bf3c46
parent02567c6cdad4d6254052f25f3b93aa2771f48d25
[POWERPC] ps3: always make sure we're running on a PS3

Add missing checks to PS3 specific drivers ps3av and sys-manager to verify that
we are actually running on a PS3 (pointed out by Arnd).

Correct existing checks in other subsystems/drivers to return -ENODEV instead
of zero.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/mm.c
arch/powerpc/platforms/ps3/system-bus.c
drivers/ps3/ps3av.c
drivers/ps3/sys-manager.c
drivers/ps3/vuart.c