[POWERPC] ps3: always make sure were running on a PS3
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Fri, 9 Mar 2007 23:05:38 +0000 (00:05 +0100)
committerArnd Bergmann <arnd@klappe.arndb.de>
Fri, 9 Mar 2007 23:07:51 +0000 (00:07 +0100)
commitef596c697a4d80048eccf50530153d7e3330c127
treeafd1d1cf9c4fc2c53d557a669d0fdba085dc3e35
parent94b2a4393c500a620de90c3266d595926302e26b
[POWERPC] ps3: always make sure were 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>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
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