diff options
Diffstat (limited to 'drivers/media/video/tlg2300/pd-video.c')
-rw-r--r-- | drivers/media/video/tlg2300/pd-video.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); |