diff options
author | Daniel Walker <dwalker@mvista.com> | 2007-12-12 16:37:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:38 -0500 |
commit | 1fe934ddfc8e6e5663c0308ae216219be87b8d4f (patch) | |
tree | 66786f6c4f808e3a65951367aa6ab126918a4737 /drivers/media/video/usbvision | |
parent | 544e6175330c86ad87abeeb1b048f56bafd96c31 (diff) |
V4L/DVB (6812): media: video: usbvision: remove ctrlUrbLock
The ctrlUrbLock has all it's users commented out, and so it's unused. This
patch removes it.
Signed-off-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-core.c | 3 | ||||
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 1 | ||||
-rw-r--r-- | drivers/media/video/usbvision/usbvision.h | 1 |
3 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/video/usbvision/usbvision-core.c b/drivers/media/video/usbvision/usbvision-core.c index 2038d409f1dc..9e404b87d000 100644 --- a/drivers/media/video/usbvision/usbvision-core.c +++ b/drivers/media/video/usbvision/usbvision-core.c | |||
@@ -1561,13 +1561,10 @@ static int usbvision_write_reg_irq(struct usb_usbvision *usbvision,int address, | |||
1561 | if (len > 8) { | 1561 | if (len > 8) { |
1562 | return -EFAULT; | 1562 | return -EFAULT; |
1563 | } | 1563 | } |
1564 | // down(&usbvision->ctrlUrbLock); | ||
1565 | if (usbvision->ctrlUrbBusy) { | 1564 | if (usbvision->ctrlUrbBusy) { |
1566 | // up(&usbvision->ctrlUrbLock); | ||
1567 | return -EBUSY; | 1565 | return -EBUSY; |
1568 | } | 1566 | } |
1569 | usbvision->ctrlUrbBusy = 1; | 1567 | usbvision->ctrlUrbBusy = 1; |
1570 | // up(&usbvision->ctrlUrbLock); | ||
1571 | 1568 | ||
1572 | usbvision->ctrlUrbSetup.bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_ENDPOINT; | 1569 | usbvision->ctrlUrbSetup.bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_ENDPOINT; |
1573 | usbvision->ctrlUrbSetup.bRequest = USBVISION_OP_CODE; | 1570 | usbvision->ctrlUrbSetup.bRequest = USBVISION_OP_CODE; |
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index 92e72910792b..b52b826a30be 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -1651,7 +1651,6 @@ static struct usb_usbvision *usbvision_alloc(struct usb_device *dev) | |||
1651 | goto err_exit; | 1651 | goto err_exit; |
1652 | } | 1652 | } |
1653 | init_waitqueue_head(&usbvision->ctrlUrb_wq); | 1653 | init_waitqueue_head(&usbvision->ctrlUrb_wq); |
1654 | init_MUTEX(&usbvision->ctrlUrbLock); /* to 1 == available */ | ||
1655 | 1654 | ||
1656 | usbvision_init_powerOffTimer(usbvision); | 1655 | usbvision_init_powerOffTimer(usbvision); |
1657 | 1656 | ||
diff --git a/drivers/media/video/usbvision/usbvision.h b/drivers/media/video/usbvision/usbvision.h index dd80a98780f2..20d7ec624999 100644 --- a/drivers/media/video/usbvision/usbvision.h +++ b/drivers/media/video/usbvision/usbvision.h | |||
@@ -370,7 +370,6 @@ struct usb_usbvision { | |||
370 | int ctrlUrbBusy; | 370 | int ctrlUrbBusy; |
371 | struct usb_ctrlrequest ctrlUrbSetup; | 371 | struct usb_ctrlrequest ctrlUrbSetup; |
372 | wait_queue_head_t ctrlUrb_wq; // Processes waiting | 372 | wait_queue_head_t ctrlUrb_wq; // Processes waiting |
373 | struct semaphore ctrlUrbLock; | ||
374 | 373 | ||
375 | /* configuration part */ | 374 | /* configuration part */ |
376 | int have_tuner; | 375 | int have_tuner; |