updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / rt2870 / 2.6.35.patch
blob3018bb1e89cfd02f29ea286d06177d1bdb1a63f2
1 --- src/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h 2010-07-09 04:13:47.000000000 +0200
2 +++ src/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h 2010-08-19 14:58:11.176667029 +0200
3 @@ -1074,9 +1074,14 @@
4 #define RT28XX_PUT_DEVICE usb_put_dev
5 #define RTUSB_ALLOC_URB(iso) usb_alloc_urb(iso, GFP_ATOMIC)
6 #define RTUSB_SUBMIT_URB(pUrb) usb_submit_urb(pUrb, GFP_ATOMIC)
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
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 #else
11 +#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_alloc_coherent(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
12 +#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_free_coherent(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
13 +#endif
14 +#else
16 #define RT28XX_PUT_DEVICE rausb_put_dev
17 #define RTUSB_ALLOC_URB(iso) rausb_alloc_urb(iso)