diff options
Diffstat (limited to 'drivers/input/misc/ati_remote.c')
-rw-r--r-- | drivers/input/misc/ati_remote.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/input/misc/ati_remote.c b/drivers/input/misc/ati_remote.c index e8bbc619f6df..bce57129afba 100644 --- a/drivers/input/misc/ati_remote.c +++ b/drivers/input/misc/ati_remote.c | |||
@@ -624,13 +624,13 @@ static void ati_remote_irq_in(struct urb *urb) | |||
624 | static int ati_remote_alloc_buffers(struct usb_device *udev, | 624 | static int ati_remote_alloc_buffers(struct usb_device *udev, |
625 | struct ati_remote *ati_remote) | 625 | struct ati_remote *ati_remote) |
626 | { | 626 | { |
627 | ati_remote->inbuf = usb_buffer_alloc(udev, DATA_BUFSIZE, GFP_ATOMIC, | 627 | ati_remote->inbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC, |
628 | &ati_remote->inbuf_dma); | 628 | &ati_remote->inbuf_dma); |
629 | if (!ati_remote->inbuf) | 629 | if (!ati_remote->inbuf) |
630 | return -1; | 630 | return -1; |
631 | 631 | ||
632 | ati_remote->outbuf = usb_buffer_alloc(udev, DATA_BUFSIZE, GFP_ATOMIC, | 632 | ati_remote->outbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC, |
633 | &ati_remote->outbuf_dma); | 633 | &ati_remote->outbuf_dma); |
634 | if (!ati_remote->outbuf) | 634 | if (!ati_remote->outbuf) |
635 | return -1; | 635 | return -1; |
636 | 636 | ||
@@ -653,10 +653,10 @@ static void ati_remote_free_buffers(struct ati_remote *ati_remote) | |||
653 | usb_free_urb(ati_remote->irq_urb); | 653 | usb_free_urb(ati_remote->irq_urb); |
654 | usb_free_urb(ati_remote->out_urb); | 654 | usb_free_urb(ati_remote->out_urb); |
655 | 655 | ||
656 | usb_buffer_free(ati_remote->udev, DATA_BUFSIZE, | 656 | usb_free_coherent(ati_remote->udev, DATA_BUFSIZE, |
657 | ati_remote->inbuf, ati_remote->inbuf_dma); | 657 | ati_remote->inbuf, ati_remote->inbuf_dma); |
658 | 658 | ||
659 | usb_buffer_free(ati_remote->udev, DATA_BUFSIZE, | 659 | usb_free_coherent(ati_remote->udev, DATA_BUFSIZE, |
660 | ati_remote->outbuf, ati_remote->outbuf_dma); | 660 | ati_remote->outbuf, ati_remote->outbuf_dma); |
661 | } | 661 | } |
662 | 662 | ||