diff options
author | Christoph Hellwig <hch@lst.de> | 2017-06-05 18:05:25 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-28 16:54:54 +0300 |
commit | 8cc9c26029d8ac3c627ecf8545b617fb78def5d4 (patch) | |
tree | d8414aeca8670625d3008db84dce07392184b249 /include/linux/dma-mapping.h | |
parent | 7eb8a7a9e854640508fefc5a6d0bb50de243610b (diff) | |
download | linux-8cc9c26029d8ac3c627ecf8545b617fb78def5d4.tar.xz |
dma-mapping: remove the set_dma_mask method
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r-- | include/linux/dma-mapping.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 3e5908656226..527f2ed8c645 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -127,7 +127,6 @@ struct dma_map_ops { enum dma_data_direction dir); int (*mapping_error)(struct device *dev, dma_addr_t dma_addr); int (*dma_supported)(struct device *dev, u64 mask); - int (*set_dma_mask)(struct device *dev, u64 mask); #ifdef ARCH_HAS_DMA_GET_REQUIRED_MASK u64 (*get_required_mask)(struct device *dev); #endif @@ -563,11 +562,6 @@ static inline int dma_supported(struct device *dev, u64 mask) #ifndef HAVE_ARCH_DMA_SET_MASK static inline int dma_set_mask(struct device *dev, u64 mask) { - const struct dma_map_ops *ops = get_dma_ops(dev); - - if (ops->set_dma_mask) - return ops->set_dma_mask(dev, mask); - if (!dev->dma_mask || !dma_supported(dev, mask)) return -EIO; *dev->dma_mask = mask; |