diff options
Diffstat (limited to 'drivers/media/usb/b2c2/flexcop-usb.c')
-rw-r--r-- | drivers/media/usb/b2c2/flexcop-usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c index 8b6275f85908..0bd969063392 100644 --- a/drivers/media/usb/b2c2/flexcop-usb.c +++ b/drivers/media/usb/b2c2/flexcop-usb.c | |||
@@ -390,7 +390,7 @@ static void flexcop_usb_transfer_exit(struct flexcop_usb *fc_usb) | |||
390 | } | 390 | } |
391 | 391 | ||
392 | if (fc_usb->iso_buffer != NULL) | 392 | if (fc_usb->iso_buffer != NULL) |
393 | pci_free_consistent(NULL, | 393 | usb_free_coherent(fc_usb->udev, |
394 | fc_usb->buffer_size, fc_usb->iso_buffer, | 394 | fc_usb->buffer_size, fc_usb->iso_buffer, |
395 | fc_usb->dma_addr); | 395 | fc_usb->dma_addr); |
396 | } | 396 | } |
@@ -407,8 +407,8 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) | |||
407 | "each of %d bytes size = %d.\n", B2C2_USB_NUM_ISO_URB, | 407 | "each of %d bytes size = %d.\n", B2C2_USB_NUM_ISO_URB, |
408 | B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize); | 408 | B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize); |
409 | 409 | ||
410 | fc_usb->iso_buffer = pci_alloc_consistent(NULL, | 410 | fc_usb->iso_buffer = usb_alloc_coherent(fc_usb->udev, |
411 | bufsize, &fc_usb->dma_addr); | 411 | bufsize, GFP_KERNEL, &fc_usb->dma_addr); |
412 | if (fc_usb->iso_buffer == NULL) | 412 | if (fc_usb->iso_buffer == NULL) |
413 | return -ENOMEM; | 413 | return -ENOMEM; |
414 | 414 | ||