diff options
Diffstat (limited to 'drivers/media/video/uvc/uvc_video.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/uvc/uvc_video.c b/drivers/media/video/uvc/uvc_video.c index 821a9969b7bf..53f3ef4635eb 100644 --- a/drivers/media/video/uvc/uvc_video.c +++ b/drivers/media/video/uvc/uvc_video.c | |||
@@ -739,7 +739,7 @@ static void uvc_free_urb_buffers(struct uvc_streaming *stream) | |||
739 | 739 | ||
740 | for (i = 0; i < UVC_URBS; ++i) { | 740 | for (i = 0; i < UVC_URBS; ++i) { |
741 | if (stream->urb_buffer[i]) { | 741 | if (stream->urb_buffer[i]) { |
742 | usb_buffer_free(stream->dev->udev, stream->urb_size, | 742 | usb_free_coherent(stream->dev->udev, stream->urb_size, |
743 | stream->urb_buffer[i], stream->urb_dma[i]); | 743 | stream->urb_buffer[i], stream->urb_dma[i]); |
744 | stream->urb_buffer[i] = NULL; | 744 | stream->urb_buffer[i] = NULL; |
745 | } | 745 | } |
@@ -780,7 +780,7 @@ static int uvc_alloc_urb_buffers(struct uvc_streaming *stream, | |||
780 | for (; npackets > 1; npackets /= 2) { | 780 | for (; npackets > 1; npackets /= 2) { |
781 | for (i = 0; i < UVC_URBS; ++i) { | 781 | for (i = 0; i < UVC_URBS; ++i) { |
782 | stream->urb_size = psize * npackets; | 782 | stream->urb_size = psize * npackets; |
783 | stream->urb_buffer[i] = usb_buffer_alloc( | 783 | stream->urb_buffer[i] = usb_alloc_coherent( |
784 | stream->dev->udev, stream->urb_size, | 784 | stream->dev->udev, stream->urb_size, |
785 | gfp_flags | __GFP_NOWARN, &stream->urb_dma[i]); | 785 | gfp_flags | __GFP_NOWARN, &stream->urb_dma[i]); |
786 | if (!stream->urb_buffer[i]) { | 786 | if (!stream->urb_buffer[i]) { |