patch-2.1.130 linux/arch/alpha/kernel/smc37c93x.c

Next file: linux/arch/alpha/kernel/sys_dp264.c
Previous file: linux/arch/alpha/kernel/smc37c669.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.129/linux/arch/alpha/kernel/smc37c93x.c linux/arch/alpha/kernel/smc37c93x.c
@@ -241,10 +241,10 @@
 int __init SMC93x_Init(void)
 {
 	unsigned long SMCUltraBase;
+	unsigned long flags;
 
+	__save_and_cli(flags);
 	if ((SMCUltraBase = SMCDetectUltraIO()) != 0UL) {
-		printk("SMC FDC37C93X Ultra I/O Controller found @ 0x%lx\n",
-		       SMCUltraBase);
 #if SMC_DEBUG
 		SMCReportDeviceStatus(SMCUltraBase);
 #endif
@@ -264,9 +264,13 @@
 		SMCReportDeviceStatus(SMCUltraBase);
 #endif
 		SMCRunState(SMCUltraBase);
+		__restore_flags(flags);
+		printk("SMC FDC37C93X Ultra I/O Controller found @ 0x%lx\n",
+		       SMCUltraBase);
 		return 1;
 	}
 	else {
+		__restore_flags(flags);
 		DBG_DEVS(("No SMC FDC37C93X Ultra I/O Controller found\n"));
 		return 0;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov