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

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

diff -u --recursive --new-file v2.1.129/linux/arch/alpha/kernel/smc37c669.c linux/arch/alpha/kernel/smc37c669.c
@@ -2519,10 +2519,10 @@
 void __init SMC669_Init ( void )
 {
     SMC37c669_CONFIG_REGS *SMC_base;
+    unsigned long flags;
 
+    __save_and_cli(flags);
     if ( ( SMC_base = SMC37c669_detect( ) ) != NULL ) {
-        printk( "SMC37c669 Super I/O Controller found @ 0x%lx\n",
-		(unsigned long) SMC_base );
 #if SMC_DEBUG
 	SMC37c669_config_mode( TRUE );
 	SMC37c669_dump_registers( );
@@ -2573,8 +2573,12 @@
 	SMC37c669_config_mode( FALSE );
         SMC37c669_display_device_info( );
 #endif
+	__restore_flags(flags);
+        printk( "SMC37c669 Super I/O Controller found @ 0x%lx\n",
+		(unsigned long) SMC_base );
     }
     else {
+	__restore_flags(flags);
 #if SMC_DEBUG
         printk( "No SMC37c669 Super I/O Controller found\n" );
 #endif

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