diff options
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/usb.c')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ar9170/usb.c b/drivers/net/wireless/ath/ar9170/usb.c index e1c2fcaa8bed..a1f5444f7ccd 100644 --- a/drivers/net/wireless/ath/ar9170/usb.c +++ b/drivers/net/wireless/ath/ar9170/usb.c | |||
@@ -202,7 +202,7 @@ resubmit: | |||
202 | return; | 202 | return; |
203 | 203 | ||
204 | free: | 204 | free: |
205 | usb_buffer_free(aru->udev, 64, urb->transfer_buffer, urb->transfer_dma); | 205 | usb_free_coherent(aru->udev, 64, urb->transfer_buffer, urb->transfer_dma); |
206 | } | 206 | } |
207 | 207 | ||
208 | static void ar9170_usb_rx_completed(struct urb *urb) | 208 | static void ar9170_usb_rx_completed(struct urb *urb) |
@@ -283,7 +283,7 @@ static int ar9170_usb_alloc_rx_irq_urb(struct ar9170_usb *aru) | |||
283 | if (!urb) | 283 | if (!urb) |
284 | goto out; | 284 | goto out; |
285 | 285 | ||
286 | ibuf = usb_buffer_alloc(aru->udev, 64, GFP_KERNEL, &urb->transfer_dma); | 286 | ibuf = usb_alloc_coherent(aru->udev, 64, GFP_KERNEL, &urb->transfer_dma); |
287 | if (!ibuf) | 287 | if (!ibuf) |
288 | goto out; | 288 | goto out; |
289 | 289 | ||
@@ -296,8 +296,8 @@ static int ar9170_usb_alloc_rx_irq_urb(struct ar9170_usb *aru) | |||
296 | err = usb_submit_urb(urb, GFP_KERNEL); | 296 | err = usb_submit_urb(urb, GFP_KERNEL); |
297 | if (err) { | 297 | if (err) { |
298 | usb_unanchor_urb(urb); | 298 | usb_unanchor_urb(urb); |
299 | usb_buffer_free(aru->udev, 64, urb->transfer_buffer, | 299 | usb_free_coherent(aru->udev, 64, urb->transfer_buffer, |
300 | urb->transfer_dma); | 300 | urb->transfer_dma); |
301 | } | 301 | } |
302 | 302 | ||
303 | out: | 303 | out: |