[PATCH] SGI SN drivers: don't report !sn2 hardware as an error

From: Bjorn Helgaas <bjorn.helgaas_at_hp.com>
Date: 2006-03-04 09:34:34
This stuff is all in the generic ia64 kernel, and the new initcall error
reporting complains about them.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

Index: work-mm4/drivers/char/mmtimer.c
===================================================================
--- work-mm4.orig/drivers/char/mmtimer.c	2006-03-03 15:10:21.000000000 -0700
+++ work-mm4/drivers/char/mmtimer.c	2006-03-03 15:12:48.000000000 -0700
@@ -675,7 +675,7 @@
 	cnodeid_t node, maxn = -1;
 
 	if (!ia64_platform_is("sn2"))
-		return -1;
+		return 0;
 
 	/*
 	 * Sanity check the cycles/sec variable
Index: work-mm4/drivers/serial/sn_console.c
===================================================================
--- work-mm4.orig/drivers/serial/sn_console.c	2006-03-03 15:10:21.000000000 -0700
+++ work-mm4/drivers/serial/sn_console.c	2006-03-03 15:12:48.000000000 -0700
@@ -820,7 +820,7 @@
 	int retval;
 
 	if (!ia64_platform_is("sn2"))
-		return -ENODEV;
+		return 0;
 
 	printk(KERN_INFO "sn_console: Console driver init\n");
 
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Mar 04 09:34:52 2006

This archive was generated by hypermail 2.1.8 : 2006-03-04 09:36:01 EST