diff options
author | Christoph Hellwig <hch@lst.de> | 2017-06-05 17:05:25 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-28 06:54:54 -0700 |
commit | 8cc9c26029d8ac3c627ecf8545b617fb78def5d4 (patch) | |
tree | d8414aeca8670625d3008db84dce07392184b249 /arch/powerpc | |
parent | 7eb8a7a9e854640508fefc5a6d0bb50de243610b (diff) | |
download | linux-8cc9c26029d8ac3c627ecf8545b617fb78def5d4.tar.bz2 |
dma-mapping: remove the set_dma_mask method
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/dma.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c index 41c749586bd2..466c9f07b288 100644 --- a/arch/powerpc/kernel/dma.c +++ b/arch/powerpc/kernel/dma.c @@ -316,10 +316,6 @@ EXPORT_SYMBOL(dma_set_coherent_mask); int __dma_set_mask(struct device *dev, u64 dma_mask) { - const struct dma_map_ops *dma_ops = get_dma_ops(dev); - - if ((dma_ops != NULL) && (dma_ops->set_dma_mask != NULL)) - return dma_ops->set_dma_mask(dev, dma_mask); if (!dev->dma_mask || !dma_supported(dev, dma_mask)) return -EIO; *dev->dma_mask = dma_mask; |