USB: rename usb_buffer_alloc() and usb_buffer_free() users
[linux-2.6.git] / drivers / input / tablet / wacom_sys.c
index f465025..191197c 100644 (file)
@@ -556,8 +556,8 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
                goto fail1;
        }
 
-       wacom_wac->data = usb_buffer_alloc(dev, WACOM_PKGLEN_MAX,
-                                          GFP_KERNEL, &wacom->data_dma);
+       wacom_wac->data = usb_alloc_coherent(dev, WACOM_PKGLEN_MAX,
+                                            GFP_KERNEL, &wacom->data_dma);
        if (!wacom_wac->data) {
                error = -ENOMEM;
                goto fail1;
@@ -633,7 +633,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
        return 0;
 
  fail3:        usb_free_urb(wacom->irq);
- fail2:        usb_buffer_free(dev, WACOM_PKGLEN_MAX, wacom_wac->data, wacom->data_dma);
+ fail2:        usb_free_coherent(dev, WACOM_PKGLEN_MAX, wacom_wac->data, wacom->data_dma);
  fail1:        input_free_device(input_dev);
        kfree(wacom);
        kfree(wacom_wac);
@@ -649,8 +649,8 @@ static void wacom_disconnect(struct usb_interface *intf)
        usb_kill_urb(wacom->irq);
        input_unregister_device(wacom->dev);
        usb_free_urb(wacom->irq);
-       usb_buffer_free(interface_to_usbdev(intf), WACOM_PKGLEN_MAX,
-                       wacom->wacom_wac->data, wacom->data_dma);
+       usb_free_coherent(interface_to_usbdev(intf), WACOM_PKGLEN_MAX,
+                         wacom->wacom_wac->data, wacom->data_dma);
        kfree(wacom->wacom_wac);
        kfree(wacom);
 }