From 2ce27fe6b3a6a5060853fd3239fccf0bbe6d94be Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 3 May 2010 21:36:41 +0200 Subject: [PATCH] compat: backport usb_alloc_coherent() and usb_free_coherent() Signed-off-by: Hauke Mehrtens --- include/linux/compat-2.6.35.h | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.30.2