diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:26:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:26:12 -0400 |
commit | 7a9b149212f3716c598afe973b6261fd58453b7a (patch) | |
tree | 477716d84c71da124448b72278e98da28aadbd3d /drivers/media/video/tlg2300 | |
parent | 3d62e3fdce8ef265a3706c52ae1ca6ab84e30f0e (diff) | |
parent | e26bcf37234c67624f62d9fc95f922b8dbda1363 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (229 commits)
USB: remove unused usb_buffer_alloc and usb_buffer_free macros
usb: musb: update gfp/slab.h includes
USB: ftdi_sio: fix legacy SIO-device header
USB: kl5usb105: reimplement using generic framework
USB: kl5usb105: minor clean ups
USB: kl5usb105: fix memory leak
USB: io_ti: use kfifo to implement write buffering
USB: io_ti: remove unsused private counter
USB: ti_usb: use kfifo to implement write buffering
USB: ir-usb: fix incorrect write-buffer length
USB: aircable: fix incorrect write-buffer length
USB: safe_serial: straighten out read processing
USB: safe_serial: reimplement read using generic framework
USB: safe_serial: reimplement write using generic framework
usb-storage: always print quirks
USB: usb-storage: trivial debug improvements
USB: oti6858: use port write fifo
USB: oti6858: use kfifo to implement write buffering
USB: cypress_m8: use kfifo to implement write buffering
USB: cypress_m8: remove unused drain define
...
Fix up conflicts (due to usb_buffer_alloc/free renaming) in
drivers/input/tablet/acecad.c
drivers/input/tablet/kbtab.c
drivers/input/tablet/wacom_sys.c
drivers/media/video/gspca/gspca.c
sound/usb/usbaudio.c
Diffstat (limited to 'drivers/media/video/tlg2300')
-rw-r--r-- | drivers/media/video/tlg2300/pd-main.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tlg2300/pd-video.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/tlg2300/pd-main.c b/drivers/media/video/tlg2300/pd-main.c index c267e0cfb54b..256cc558ba13 100644 --- a/drivers/media/video/tlg2300/pd-main.c +++ b/drivers/media/video/tlg2300/pd-main.c | |||
@@ -454,8 +454,8 @@ static int poseidon_probe(struct usb_interface *interface, | |||
454 | 454 | ||
455 | device_init_wakeup(&udev->dev, 1); | 455 | device_init_wakeup(&udev->dev, 1); |
456 | #ifdef CONFIG_PM | 456 | #ifdef CONFIG_PM |
457 | pd->udev->autosuspend_disabled = 0; | ||
458 | pd->udev->autosuspend_delay = HZ * PM_SUSPEND_DELAY; | 457 | pd->udev->autosuspend_delay = HZ * PM_SUSPEND_DELAY; |
458 | usb_enable_autosuspend(pd->udev); | ||
459 | 459 | ||
460 | if (in_hibernation(pd)) { | 460 | if (in_hibernation(pd)) { |
461 | INIT_WORK(&pd->pm_work, hibernation_resume); | 461 | INIT_WORK(&pd->pm_work, hibernation_resume); |
diff --git a/drivers/media/video/tlg2300/pd-video.c b/drivers/media/video/tlg2300/pd-video.c index c750fd115ec4..d0cc012f7ae6 100644 --- a/drivers/media/video/tlg2300/pd-video.c +++ b/drivers/media/video/tlg2300/pd-video.c | |||
@@ -478,10 +478,10 @@ static int prepare_iso_urb(struct video_data *video) | |||
478 | goto out; | 478 | goto out; |
479 | 479 | ||
480 | video->urb_array[i] = urb; | 480 | video->urb_array[i] = urb; |
481 | mem = usb_buffer_alloc(udev, | 481 | mem = usb_alloc_coherent(udev, |
482 | ISO_PKT_SIZE * PK_PER_URB, | 482 | ISO_PKT_SIZE * PK_PER_URB, |
483 | GFP_KERNEL, | 483 | GFP_KERNEL, |
484 | &urb->transfer_dma); | 484 | &urb->transfer_dma); |
485 | 485 | ||
486 | urb->complete = urb_complete_iso; /* handler */ | 486 | urb->complete = urb_complete_iso; /* handler */ |
487 | urb->dev = udev; | 487 | urb->dev = udev; |
@@ -521,8 +521,8 @@ int alloc_bulk_urbs_generic(struct urb **urb_array, int num, | |||
521 | if (urb == NULL) | 521 | if (urb == NULL) |
522 | return i; | 522 | return i; |
523 | 523 | ||
524 | mem = usb_buffer_alloc(udev, buf_size, gfp_flags, | 524 | mem = usb_alloc_coherent(udev, buf_size, gfp_flags, |
525 | &urb->transfer_dma); | 525 | &urb->transfer_dma); |
526 | if (mem == NULL) | 526 | if (mem == NULL) |
527 | return i; | 527 | return i; |
528 | 528 | ||
@@ -542,7 +542,7 @@ void free_all_urb_generic(struct urb **urb_array, int num) | |||
542 | for (i = 0; i < num; i++) { | 542 | for (i = 0; i < num; i++) { |
543 | urb = urb_array[i]; | 543 | urb = urb_array[i]; |
544 | if (urb) { | 544 | if (urb) { |
545 | usb_buffer_free(urb->dev, | 545 | usb_free_coherent(urb->dev, |
546 | urb->transfer_buffer_length, | 546 | urb->transfer_buffer_length, |
547 | urb->transfer_buffer, | 547 | urb->transfer_buffer, |
548 | urb->transfer_dma); | 548 | urb->transfer_dma); |