aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/dma-mapping.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-16 08:24:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-21 10:08:27 -0700
commitbd5defaee872da9b81e3c72045eb6794445cd2e6 (patch)
tree0fb89744886b8a3e3c7fbed59196c736ab5bb854 /include/linux/dma-mapping.h
parentusb/max3421: remove the dummy {un,}map_urb_for_dma methods (diff)
downloadwireguard-linux-bd5defaee872da9b81e3c72045eb6794445cd2e6.tar.xz
wireguard-linux-bd5defaee872da9b81e3c72045eb6794445cd2e6.zip
dma-mapping: remove is_device_dma_capable
No users left. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20190816062435.881-6-hch@lst.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r--include/linux/dma-mapping.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index f7d1eea32c78..14702e2d6fa8 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -149,11 +149,6 @@ static inline int valid_dma_direction(int dma_direction)
(dma_direction == DMA_FROM_DEVICE));
}
-static inline int is_device_dma_capable(struct device *dev)
-{
- return dev->dma_mask != NULL && *dev->dma_mask != DMA_MASK_NONE;
-}
-
#ifdef CONFIG_DMA_DECLARE_COHERENT
/*
* These three functions are only for dma allocator.