updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rt3070usb / rt3070.patch
blob1d330fc402fab07c747cecd9138588b814309993
1 diff -wbBur DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/os/rt_linux.h DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.my/include/os/rt_linux.h
2 --- DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/os/rt_linux.h 2009-12-28 15:56:13.000000000 +0300
3 +++ DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.my/include/os/rt_linux.h 2010-08-04 15:43:03.000000000 +0400
4 @@ -1011,8 +1011,8 @@
5 #define RT28XX_PUT_DEVICE usb_put_dev
6 #define RTUSB_ALLOC_URB(iso) usb_alloc_urb(iso, GFP_ATOMIC)
7 #define RTUSB_SUBMIT_URB(pUrb) usb_submit_urb(pUrb, GFP_ATOMIC)
8 -#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_buffer_alloc(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
9 -#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_buffer_free(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
10 +#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_alloc_coherent(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
11 +#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_free_coherent(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
12 #else
14 #define RT28XX_PUT_DEVICE rausb_put_dev
15 diff -wbBur DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt_linux.c DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.my/os/linux/rt_linux.c
16 --- DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt_linux.c 2010-04-12 12:01:59.000000000 +0400
17 +++ DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.my/os/linux/rt_linux.c 2010-08-04 15:44:48.000000000 +0400
18 @@ -29,11 +29,7 @@
20 ULONG RTDebugLevel = RT_DEBUG_ERROR;
22 -#ifdef RTMP_MAC_USB
23 -#ifdef OS_ABL_SUPPORT
24 MODULE_LICENSE("GPL");
25 -#endif // OS_ABL_SUPPORT //
26 -#endif // RTMP_MAC_USB //
28 #ifdef SYSTEM_LOG_SUPPORT
29 // for wireless system event message
30 diff -wbBur DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt_usb_util.c DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.my/os/linux/rt_usb_util.c
31 --- DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt_usb_util.c 2009-12-29 04:50:55.000000000 +0300
32 +++ DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.my/os/linux/rt_usb_util.c 2010-08-04 15:44:19.000000000 +0400
33 @@ -142,7 +142,7 @@
34 void *addr,
35 dma_addr_t dma)
37 - usb_buffer_free(dev, size, addr, dma);
38 + usb_free_coherent(dev, size, addr, dma);
40 EXPORT_SYMBOL(rausb_buffer_free);
41 #endif // LINUX_VERSION_CODE //