summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/rt3572usb/files/rt3572usb-2.5.0.0-rt_linux.h.patch')
-rw-r--r--net-wireless/rt3572usb/files/rt3572usb-2.5.0.0-rt_linux.h.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-wireless/rt3572usb/files/rt3572usb-2.5.0.0-rt_linux.h.patch b/net-wireless/rt3572usb/files/rt3572usb-2.5.0.0-rt_linux.h.patch
new file mode 100644
index 0000000..e2729c7
--- /dev/null
+++ b/net-wireless/rt3572usb/files/rt3572usb-2.5.0.0-rt_linux.h.patch
@@ -0,0 +1,13 @@
+--- 2010_0915_RT3572_Linux_STA_v2.4.0.2.orig/include/os/rt_linux.h 2010-09-15 06:59:22.000000000 +0200
++++ 2010_0915_RT3572_Linux_STA_v2.4.0.2/include/os/rt_linux.h 2010-10-27 22:21:54.721136478 +0200
+@@ -1074,8 +1074,8 @@
+ #define RT28XX_PUT_DEVICE usb_put_dev
+ #define RTUSB_ALLOC_URB(iso) usb_alloc_urb(iso, GFP_ATOMIC)
+ #define RTUSB_SUBMIT_URB(pUrb) usb_submit_urb(pUrb, GFP_ATOMIC)
+-#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_buffer_alloc(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
+-#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_buffer_free(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
++#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_alloc_coherent(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
++#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_free_coherent(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
+ #else
+
+ #define RT28XX_PUT_DEVICE