diff options
Diffstat (limited to 'drivers/media/video/au0828/au0828-video.c')
-rw-r--r-- | drivers/media/video/au0828/au0828-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/au0828/au0828-video.c b/drivers/media/video/au0828/au0828-video.c index 8c140c01c5e6..a2a0f79a84f3 100644 --- a/drivers/media/video/au0828/au0828-video.c +++ b/drivers/media/video/au0828/au0828-video.c | |||
@@ -177,7 +177,7 @@ void au0828_uninit_isoc(struct au0828_dev *dev) | |||
177 | usb_unlink_urb(urb); | 177 | usb_unlink_urb(urb); |
178 | 178 | ||
179 | if (dev->isoc_ctl.transfer_buffer[i]) { | 179 | if (dev->isoc_ctl.transfer_buffer[i]) { |
180 | usb_buffer_free(dev->usbdev, | 180 | usb_free_coherent(dev->usbdev, |
181 | urb->transfer_buffer_length, | 181 | urb->transfer_buffer_length, |
182 | dev->isoc_ctl.transfer_buffer[i], | 182 | dev->isoc_ctl.transfer_buffer[i], |
183 | urb->transfer_dma); | 183 | urb->transfer_dma); |
@@ -247,7 +247,7 @@ int au0828_init_isoc(struct au0828_dev *dev, int max_packets, | |||
247 | } | 247 | } |
248 | dev->isoc_ctl.urb[i] = urb; | 248 | dev->isoc_ctl.urb[i] = urb; |
249 | 249 | ||
250 | dev->isoc_ctl.transfer_buffer[i] = usb_buffer_alloc(dev->usbdev, | 250 | dev->isoc_ctl.transfer_buffer[i] = usb_alloc_coherent(dev->usbdev, |
251 | sb_size, GFP_KERNEL, &urb->transfer_dma); | 251 | sb_size, GFP_KERNEL, &urb->transfer_dma); |
252 | if (!dev->isoc_ctl.transfer_buffer[i]) { | 252 | if (!dev->isoc_ctl.transfer_buffer[i]) { |
253 | printk("unable to allocate %i bytes for transfer" | 253 | printk("unable to allocate %i bytes for transfer" |