patch-2.3.1 linux/drivers/block/paride/paride.c

Next file: linux/drivers/block/paride/paride.h
Previous file: linux/drivers/block/opti621.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/block/paride/paride.c linux/drivers/block/paride/paride.c
@@ -247,7 +247,7 @@
 	pi->pardev = (void *) parport_register_device(
 	      pp,pi->device,NULL,pi_wake_up,NULL,0,(void *)pi);
 
-	pi->parq = NULL;
+	init_wait_queue_head(&pi->parq);
 
 	if (verbose) printk("%s: 0x%x is %s\n",pi->device,pi->port,pp->name);
 	
@@ -357,7 +357,7 @@
 
 		pi->parname = NULL;
 		pi->pardev = NULL;
-		pi->parq = NULL;
+		init_wait_queue_head(&pi->parq);
 		pi->claimed = 0;
 		pi->claim_cont = NULL;
 	        

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)