diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-29 18:46:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:50 -0400 |
commit | e26bcf37234c67624f62d9fc95f922b8dbda1363 (patch) | |
tree | d81be298b9a5b22c5157ee02f3af1925f895af96 | |
parent | c4d80b7d5220a65cc4e26173d99d4750895f3e64 (diff) |
USB: remove unused usb_buffer_alloc and usb_buffer_free macros
Now that all callers are converted over, remove the compatibility
functions and all is good.
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | include/linux/usb.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 88e854cd6b32..d5922a877994 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -1372,18 +1372,6 @@ void *usb_alloc_coherent(struct usb_device *dev, size_t size, | |||
1372 | void usb_free_coherent(struct usb_device *dev, size_t size, | 1372 | void usb_free_coherent(struct usb_device *dev, size_t size, |
1373 | void *addr, dma_addr_t dma); | 1373 | void *addr, dma_addr_t dma); |
1374 | 1374 | ||
1375 | /* Compatible macros while we switch over */ | ||
1376 | static inline void *usb_buffer_alloc(struct usb_device *dev, size_t size, | ||
1377 | gfp_t mem_flags, dma_addr_t *dma) | ||
1378 | { | ||
1379 | return usb_alloc_coherent(dev, size, mem_flags, dma); | ||
1380 | } | ||
1381 | static inline void usb_buffer_free(struct usb_device *dev, size_t size, | ||
1382 | void *addr, dma_addr_t dma) | ||
1383 | { | ||
1384 | return usb_free_coherent(dev, size, addr, dma); | ||
1385 | } | ||
1386 | |||
1387 | #if 0 | 1375 | #if 0 |
1388 | struct urb *usb_buffer_map(struct urb *urb); | 1376 | struct urb *usb_buffer_map(struct urb *urb); |
1389 | void usb_buffer_dmasync(struct urb *urb); | 1377 | void usb_buffer_dmasync(struct urb *urb); |