diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-02-22 16:43:12 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-09 05:03:23 +0100 |
commit | 8170f524894b17a3f36351fe0e1a3fb6aca733ee (patch) | |
tree | 0cbc94fe9c15f9a17a37895ddd525926d1bf3c46 /drivers/ps3/vuart.c | |
parent | [POWERPC] Allocate syscall number for sys_getcpu (diff) | |
download | linux-8170f524894b17a3f36351fe0e1a3fb6aca733ee.tar.xz linux-8170f524894b17a3f36351fe0e1a3fb6aca733ee.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | drivers/ps3/vuart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ps3/vuart.c b/drivers/ps3/vuart.c index 746298107d6f..1adf186bfaf5 100644 --- a/drivers/ps3/vuart.c +++ b/drivers/ps3/vuart.c @@ -1031,7 +1031,7 @@ int __init ps3_vuart_bus_init(void) pr_debug("%s:%d:\n", __func__, __LINE__); if (!firmware_has_feature(FW_FEATURE_PS3_LV1)) - return 0; + return -ENODEV; init_MUTEX(&vuart_bus_priv.probe_mutex); result = bus_register(&ps3_vuart_bus); |