projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d6ff30
)
dma-mapping: remove is_device_dma_capable
author
Christoph Hellwig
<hch@lst.de>
Fri, 16 Aug 2019 06:24:34 +0000
(08:24 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 21 Aug 2019 17:08:27 +0000
(10:08 -0700)
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>
include/linux/dma-mapping.h
patch
|
blob
|
history
diff --git
a/include/linux/dma-mapping.h
b/include/linux/dma-mapping.h
index
f7d1eea
..
14702e2
100644
(file)
--- 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.