Browse Source

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

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>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Bjorn Helgaas 19 years ago
parent
commit
f032f90809
2 changed files with 2 additions and 2 deletions
  1. 1 1
      drivers/char/mmtimer.c
  2. 1 1
      drivers/serial/sn_console.c

+ 1 - 1
drivers/char/mmtimer.c

@@ -675,7 +675,7 @@ static int __init mmtimer_init(void)
 	cnodeid_t node, maxn = -1;
 	cnodeid_t node, maxn = -1;
 
 
 	if (!ia64_platform_is("sn2"))
 	if (!ia64_platform_is("sn2"))
-		return -1;
+		return 0;
 
 
 	/*
 	/*
 	 * Sanity check the cycles/sec variable
 	 * Sanity check the cycles/sec variable

+ 1 - 1
drivers/serial/sn_console.c

@@ -820,7 +820,7 @@ static int __init sn_sal_module_init(void)
 	int retval;
 	int retval;
 
 
 	if (!ia64_platform_is("sn2"))
 	if (!ia64_platform_is("sn2"))
-		return -ENODEV;
+		return 0;
 
 
 	printk(KERN_INFO "sn_console: Console driver init\n");
 	printk(KERN_INFO "sn_console: Console driver init\n");