USB: rename usb_buffer_alloc() and usb_buffer_free() users
[linux-2.6.git] / drivers / media / video / em28xx / em28xx-core.c
index a41cc55..d4a9554 100644 (file)
@@ -966,7 +966,7 @@ void em28xx_uninit_isoc(struct em28xx *dev)
                                usb_unlink_urb(urb);
 
                        if (dev->isoc_ctl.transfer_buffer[i]) {
-                               usb_buffer_free(dev->udev,
+                               usb_free_coherent(dev->udev,
                                        urb->transfer_buffer_length,
                                        dev->isoc_ctl.transfer_buffer[i],
                                        urb->transfer_dma);
@@ -1041,7 +1041,7 @@ int em28xx_init_isoc(struct em28xx *dev, int max_packets,
                }
                dev->isoc_ctl.urb[i] = urb;
 
-               dev->isoc_ctl.transfer_buffer[i] = usb_buffer_alloc(dev->udev,
+               dev->isoc_ctl.transfer_buffer[i] = usb_alloc_coherent(dev->udev,
                        sb_size, GFP_KERNEL, &urb->transfer_dma);
                if (!dev->isoc_ctl.transfer_buffer[i]) {
                        em28xx_err("unable to allocate %i bytes for transfer"