patch-2.3.1 linux/drivers/sound/dmasound.c

Next file: linux/drivers/sound/es1370.c
Previous file: linux/drivers/sound/dev_table.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/sound/dmasound.c linux/drivers/sound/dmasound.c
@@ -809,7 +809,7 @@
 	 *	       Bit 1 is set: a frame is playing
 	 */
 	int playing;
-	struct wait_queue *write_queue, *open_queue, *sync_queue;
+	wait_queue_head_t write_queue, open_queue, sync_queue;
 	int open_mode;
 	int busy, syncing;
 #ifdef CONFIG_ATARI
@@ -4623,7 +4623,9 @@
 	if (sq_unit < 0)
 		return;
 
-	sq.write_queue = sq.open_queue = sq.sync_queue = 0;
+	init_waitqueue_head(&sq.write_queue);
+	init_waitqueue_head(&sq.open_queue);
+	init_waitqueue_head(&sq.sync_queue);
 	sq.busy = 0;
 
 	/* whatever you like as startup mode for /dev/dsp,

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