]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] - Disable tiocx driver on non-SN systems
authorJack Steiner <steiner@sgi.com>
Thu, 7 Jul 2005 16:14:00 +0000 (09:14 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 7 Jul 2005 16:52:59 +0000 (09:52 -0700)
Disable the tiocx driver on non-SN systems.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/tiocx.c

index 8716f4d5314b968f4b2e8df5cd5d7931db233426..c1cbcd1a1398de1db3b7ea02750b9aeca63b9060 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/proc_fs.h>
 #include <linux/device.h>
 #include <linux/delay.h>
+#include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/sn/sn_sal.h>
 #include <asm/sn/addrs.h>
@@ -481,6 +482,9 @@ static int __init tiocx_init(void)
        cnodeid_t cnodeid;
        int found_tiocx_device = 0;
 
+       if (!ia64_platform_is("sn2"))
+               return -ENODEV;
+
        bus_register(&tiocx_bus_type);
 
        for (cnodeid = 0; cnodeid < MAX_COMPACT_NODES; cnodeid++) {