patch-2.3.99-pre9 linux/drivers/char/rio/rioinit.c
Next file: linux/drivers/char/rio/riotty.c
Previous file: linux/drivers/char/rio/rioctrl.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Sat May 20 10:51:00 2000
-  Orig file: 
v2.3.99-pre8/linux/drivers/char/rio/rioinit.c
-  Orig date: 
Thu May 11 15:30:06 2000
diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/char/rio/rioinit.c linux/drivers/char/rio/rioinit.c
@@ -1414,7 +1414,7 @@
 	    (int)p->RIOHosts, sizeof(struct Host) ) );
 
 	for( host=0; host<RIO_HOSTS; host++ ) {
-		p->RIOHosts[host].HostLock = SPIN_LOCK_UNLOCKED; /* Let the first guy takes it */
+		spin_lock_init (&p->RIOHosts[host].HostLock);
 		p->RIOHosts[host].timeout_id = 0; /* Let the first guy takes it */
 	}
 	/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)