USB: rename usb_buffer_alloc() and usb_buffer_free() users
[linux-2.6.git] / drivers / usb / misc / usblcd.c
index 90aede9..7828c76 100644 (file)
@@ -205,8 +205,8 @@ static void lcd_write_bulk_callback(struct urb *urb)
        }
 
        /* free up our allocated buffer */
-       usb_buffer_free(urb->dev, urb->transfer_buffer_length,
-                       urb->transfer_buffer, urb->transfer_dma);
+       usb_free_coherent(urb->dev, urb->transfer_buffer_length,
+                         urb->transfer_buffer, urb->transfer_dma);
        up(&dev->limit_sem);
 }
 
@@ -234,7 +234,7 @@ static ssize_t lcd_write(struct file *file, const char __user * user_buffer, siz
                goto err_no_buf;
        }
        
-       buf = usb_buffer_alloc(dev->udev, count, GFP_KERNEL, &urb->transfer_dma);
+       buf = usb_alloc_coherent(dev->udev, count, GFP_KERNEL, &urb->transfer_dma);
        if (!buf) {
                retval = -ENOMEM;
                goto error;
@@ -268,7 +268,7 @@ exit:
 error_unanchor:
        usb_unanchor_urb(urb);
 error:
-       usb_buffer_free(dev->udev, count, buf, urb->transfer_dma);
+       usb_free_coherent(dev->udev, count, buf, urb->transfer_dma);
        usb_free_urb(urb);
 err_no_buf:
        up(&dev->limit_sem);