aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/scsiglue.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-05-01 15:36:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-21 18:15:53 -0400
commit7119e3c37fbf7c27adb5929f344c826ecb8c7859 (patch)
tree7218b937cce2fa4b8a87ae1c682552381c906496 /drivers/usb/storage/scsiglue.c
parent7e4d6c387994294ac8198b624ee71e75de60dfd2 (diff)
usb-storage: change remaining semaphore to completion
This patch (as1090) converts the one remaining semaphore in usb-storage into a completion. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/scsiglue.c')
-rw-r--r--drivers/usb/storage/scsiglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
index 1caf3f7af349..043b60b2ad17 100644
--- a/drivers/usb/storage/scsiglue.c
+++ b/drivers/usb/storage/scsiglue.c
@@ -248,7 +248,7 @@ static int queuecommand(struct scsi_cmnd *srb,
248 /* enqueue the command and wake up the control thread */ 248 /* enqueue the command and wake up the control thread */
249 srb->scsi_done = done; 249 srb->scsi_done = done;
250 us->srb = srb; 250 us->srb = srb;
251 up(&(us->sema)); 251 complete(&us->cmnd_ready);
252 252
253 return 0; 253 return 0;
254} 254}