[POWERPC] ps3: always make sure were running on a PS3
[deliverable/linux.git] / drivers / ps3 / sys-manager.c
index 0fc30be8b81e0ab120410931bba42e4e7b72a1e0..3aa2b0dcc36956d6afc9622530ea78b00e5b3290 100644 (file)
 #include <linux/module.h>
 #include <linux/workqueue.h>
 #include <linux/reboot.h>
+
+#include <asm/firmware.h>
 #include <asm/ps3.h>
+
 #include "vuart.h"
 
 MODULE_AUTHOR("Sony Corporation");
@@ -598,6 +601,9 @@ static struct ps3_vuart_port_driver ps3_sys_manager = {
 
 static int __init ps3_sys_manager_init(void)
 {
+       if (!firmware_has_feature(FW_FEATURE_PS3_LV1))
+               return -ENODEV;
+
        return ps3_vuart_port_driver_register(&ps3_sys_manager);
 }
 
This page took 0.026417 seconds and 5 git commands to generate.