patch-2.3.3 linux/drivers/ap1000/ddv.c

Next file: linux/drivers/block/Makefile
Previous file: linux/drivers/ap1000/ap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.2/linux/drivers/ap1000/ddv.c linux/drivers/ap1000/ddv.c
@@ -84,7 +84,7 @@
 static char *ddv_opcodep = NULL;
 static struct request *next_request = NULL;
 
-static struct wait_queue * busy_wait = NULL;
+static DECLARE_WAIT_QUEUE_HEAD(busy_wait);
 
 static int ddv_blocksizes[NUM_DDVDEVS]; /* in bytes */
 int ddv_sect_length[NUM_DDVDEVS]; /* in sectors */
@@ -93,7 +93,7 @@
 /* these are used by the ddv_daemon, which services remote disk requests */
 static struct remote_request *rem_queue = NULL;
 static struct remote_request *rem_queue_end;
-static struct wait_queue *ddv_daemon_wait = NULL;
+static DECLARE_WAIT_QUEUE_HEAD(ddv_daemon_wait);
 
 static int opiu_kernel_loaded = 0;
 

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