updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / lmpcm_usb / lmpcm_usb-kernel_compatibility.patch
blob3b32d3a7d30e1db8ade4e29bedd2e740aa2cde77
1 diff -Nurp lmpcm_usb-0.5.8.orig/lmpcm_usb.c lmpcm_usb-0.5.8/lmpcm_usb.c
2 --- lmpcm_usb-0.5.8.orig/lmpcm_usb.c 2010-02-21 17:16:59.000000000 +0100
3 +++ lmpcm_usb-0.5.8/lmpcm_usb.c 2011-01-23 15:32:51.000000000 +0100
4 @@ -109,7 +109,7 @@ void lmpcm_free ( lmpcm_t *lmpcm ) {
5 usb_free_urb(lmpcm->urb);
7 if ( lmpcm->data )
8 - usb_buffer_free(lmpcm->usbdev,8,lmpcm->data,lmpcm->data_dma);
9 + usb_free_coherent(lmpcm->usbdev,8,lmpcm->data,lmpcm->data_dma);
11 kfree(lmpcm);
13 @@ -150,7 +150,7 @@ lmpcm_t *lmpcm_new ( struct usb_device *
15 // Create data required for urb transfer
17 - if (!(lmpcm->data = usb_buffer_alloc(dev,8,ATOMIC,&lmpcm->data_dma))) {
18 + if (!(lmpcm->data = usb_alloc_coherent(dev,8,ATOMIC,&lmpcm->data_dma))) {
19 lmpcm_free(lmpcm);
20 return NULL;