patch-2.4.18 linux/arch/alpha/kernel/smc37c669.c
Next file: linux/arch/alpha/kernel/sys_miata.c
Previous file: linux/arch/alpha/kernel/proto.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Jan 14 16:31:16 2002
- Orig file:
linux.orig/arch/alpha/kernel/smc37c669.c
- Orig date:
Mon Feb 18 20:18:39 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/arch/alpha/kernel/smc37c669.c linux/arch/alpha/kernel/smc37c669.c
@@ -2528,7 +2528,7 @@
*
* RETURNS:
*
- * Nothing
+ * 1 if the chip found, 0 otherwise
*
* ARGUMENTS:
*
@@ -2539,7 +2539,7 @@
* None
*
*/
-void __init SMC669_Init ( int index )
+int __init SMC669_Init ( int index )
{
SMC37c669_CONFIG_REGS *SMC_base;
unsigned long flags;
@@ -2602,11 +2602,13 @@
__restore_flags(flags);
printk( "SMC37c669 Super I/O Controller found @ 0x%lx\n",
(unsigned long) SMC_base );
+ return 1;
}
else {
__restore_flags(flags);
#if SMC_DEBUG
printk( "No SMC37c669 Super I/O Controller found\n" );
#endif
+ return 0;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)