patch-2.3.1 linux/drivers/char/tpqic02.c

Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/synclink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/char/tpqic02.c linux/drivers/char/tpqic02.c
@@ -127,7 +127,7 @@
 
 static volatile int ctlbits = 0;     /* control reg bits for tape interface */
 
-static struct wait_queue *qic02_tape_transfer = NULL; /* sync rw with interrupts */
+static wait_queue_t qic02_tape_transfer; /* sync rw with interrupts */
 
 static volatile struct mtget ioctl_status;	/* current generic status */
 
@@ -2936,6 +2936,7 @@
 	return -ENODEV;
     }
 
+    init_waitqueue_head(&qic02_tape_transfer);
     /* prepare timer */
     TIMEROFF;
     timer_table[QIC02_TAPE_TIMER].expires = 0;

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