diff options
-rw-r--r-- | add-appleir-usb-driver.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add-appleir-usb-driver.patch b/add-appleir-usb-driver.patch index e68d88ed4..42f5b637b 100644 --- a/add-appleir-usb-driver.patch +++ b/add-appleir-usb-driver.patch @@ -439,7 +439,7 @@ index 0000000..cff4df6 + if (!appleir) + goto allocfail; + -+ appleir->data = usb_buffer_alloc(dev, URB_SIZE, GFP_KERNEL, ++ appleir->data = usb_alloc_coherent(dev, URB_SIZE, GFP_KERNEL, + &appleir->dma_buf); + if (!appleir->data) + goto usbfail; @@ -506,7 +506,7 @@ index 0000000..cff4df6 + usb_free_urb(appleir->urb); + +usbfail: -+ usb_buffer_free(dev, URB_SIZE, appleir->data, ++ usb_free_coherent(dev, URB_SIZE, appleir->data, + appleir->dma_buf); + +allocfail: @@ -522,7 +522,7 @@ index 0000000..cff4df6 + usb_set_intfdata(intf, NULL); + input_unregister_device(appleir->input_dev); + usb_free_urb(appleir->urb); -+ usb_buffer_free(interface_to_usbdev(intf), URB_SIZE, ++ usb_free_coherent(interface_to_usbdev(intf), URB_SIZE, + appleir->data, appleir->dma_buf); + kfree(appleir); +} |