From: Hauke Mehrtens Date: Mon, 3 May 2010 19:36:41 +0000 (+0200) Subject: compat: backport usb_alloc_coherent() and usb_free_coherent() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2ce27fe6b3a6a5060853fd3239fccf0bbe6d94be;p=openwrt%2Fstaging%2Fblogic.git compat: backport usb_alloc_coherent() and usb_free_coherent() Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/compat-2.6.35.h b/include/linux/compat-2.6.35.h index 9132ecbc478c..9c6e6964d008 100644 --- a/include/linux/compat-2.6.35.h +++ b/include/linux/compat-2.6.35.h @@ -20,6 +20,9 @@ static inline wait_queue_head_t *sk_sleep(struct sock *sk) return sk->sk_sleep; } +#define usb_alloc_coherent(dev, size, mem_flags, dma) usb_buffer_alloc(dev, size, mem_flags, dma) +#define usb_free_coherent(dev, size, addr, dma) usb_buffer_free(dev, size, addr, dma) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */ #endif /* LINUX_26_35_COMPAT_H */