提交 bd5defae 编写于 作者: C Christoph Hellwig 提交者: Greg Kroah-Hartman

dma-mapping: remove is_device_dma_capable

No users left.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20190816062435.881-6-hch@lst.deSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5d6ff300
...@@ -149,11 +149,6 @@ static inline int valid_dma_direction(int dma_direction) ...@@ -149,11 +149,6 @@ static inline int valid_dma_direction(int dma_direction)
(dma_direction == DMA_FROM_DEVICE)); (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 #ifdef CONFIG_DMA_DECLARE_COHERENT
/* /*
* These three functions are only for dma allocator. * These three functions are only for dma allocator.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册