aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/parport/share.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/parport/share.c b/drivers/parport/share.c
index 6a83ee1e9178..3fa66244ce32 100644
--- a/drivers/parport/share.c
+++ b/drivers/parport/share.c
@@ -905,7 +905,8 @@ int parport_claim_or_block(struct pardevice *dev)
905 /* If dev->waiting is clear now, an interrupt 905 /* If dev->waiting is clear now, an interrupt
906 gave us the port and we would deadlock if we slept. */ 906 gave us the port and we would deadlock if we slept. */
907 if (dev->waiting) { 907 if (dev->waiting) {
908 interruptible_sleep_on (&dev->wait_q); 908 wait_event_interruptible(dev->wait_q,
909 !dev->waiting);
909 if (signal_pending (current)) { 910 if (signal_pending (current)) {
910 return -EINTR; 911 return -EINTR;
911 } 912 }