public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - Disable tiocx driver on non-SN systems
@ 2005-07-07 16:13 Jack Steiner
  0 siblings, 0 replies; only message in thread
From: Jack Steiner @ 2005-07-07 16:13 UTC (permalink / raw)
  To: linux-ia64

Disable the tiocx driver on non-SN systems.


 	Signed-off-by: Jack Steiner <steiner@sgi.com>



 tiocx.c |    4 ++++
 1 files changed, 4 insertions(+)



Index: linux/arch/ia64/sn/kernel/tiocx.c
=================================--- linux.orig/arch/ia64/sn/kernel/tiocx.c	2005-07-07 08:52:25.727428068 -0500
+++ linux/arch/ia64/sn/kernel/tiocx.c	2005-07-07 08:59:05.207224795 -0500
@@ -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++) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-07 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-07 16:13 [PATCH] - Disable tiocx driver on non-SN systems Jack Steiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox