patch-2.3.1 linux/drivers/cdrom/sonycd535.c
Next file: linux/drivers/char/atixlmouse.c
Previous file: linux/drivers/cdrom/sjcd.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed May 12 13:27:37 1999
- Orig file:
v2.3.0/linux/drivers/cdrom/sonycd535.c
- Orig date:
Thu Jan 7 08:46:59 1999
diff -u --recursive --new-file v2.3.0/linux/drivers/cdrom/sonycd535.c linux/drivers/cdrom/sonycd535.c
@@ -261,7 +261,7 @@
static int sony535_irq_used = CDU535_INTERRUPT;
/* The interrupt handler will wake this queue up when it gets an interrupt. */
-static struct wait_queue *cdu535_irq_wait = NULL;
+static DECLARE_WAIT_QUEUE_HEAD(cdu535_irq_wait);
/*
@@ -318,7 +318,7 @@
cdu535_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
disable_interrupts();
- if (cdu535_irq_wait != NULL)
+ if (wait_queue_active(&cdu535_irq_wait))
wake_up(&cdu535_irq_wait);
else
printk(CDU535_MESSAGE_NAME
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)