patch-2.3.3 linux/arch/m68k/mac/adb-bus.c

Next file: linux/arch/mips/kernel/irixsig.c
Previous file: linux/arch/m68k/atari/stdma.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.2/linux/arch/m68k/mac/adb-bus.c linux/arch/m68k/mac/adb-bus.c
@@ -2328,12 +2328,12 @@
 	struct adb_request req;
 };
 
-static struct wait_queue *adb_wait;
+static DECLARE_WAIT_QUEUE_HEAD(adb_wait);
 
 static int adb_wait_reply(struct adbdev_state *state, struct file *file)
 {
 	int ret = 0;
-	struct wait_queue wait = { current, NULL };
+	DECLARE_WAITQUEUE(wait,current);
 
 	add_wait_queue(&adb_wait, &wait);
 	current->state = TASK_INTERRUPTIBLE;
@@ -2552,12 +2552,12 @@
 	struct adb_request req;
 };
 
-static struct wait_queue *adb_wait;
+static DECLARE_WAIT_QUEUE_HEAD(adb_wait);
 
 static int adb_wait_reply(struct adbdev_state *state, struct file *file)
 {
 	int ret = 0;
-	struct wait_queue wait = { current, NULL };
+	DECLARE_WAITQUEUE(wait, current);
 
 #if (ADBDEBUG & ADBDEBUG_DEVICE)
 	printk("ADB request: wait_reply (blocking ... \n");

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