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

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

diff -u --recursive --new-file v2.3.0/linux/drivers/char/dtlk.c linux/drivers/char/dtlk.c
@@ -87,7 +87,7 @@
 static int dtlk_has_indexing;
 static unsigned int dtlk_portlist[] =
 {0x25e, 0x29e, 0x2de, 0x31e, 0x35e, 0x39e, 0};
-static struct wait_queue *dtlk_process_list = NULL;
+static wait_queue_head_t dtlk_process_list;
 static struct timer_list dtlk_timer;
 
 /* prototypes for file_operations struct */
@@ -382,7 +382,7 @@
 
 	init_timer(&dtlk_timer);
 	dtlk_timer.function = dtlk_timer_tick;
-	dtlk_process_list = NULL;
+	init_waitqueue_head(&dtlk_process_list);
 
 	return 0;
 }

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