summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-29 10:03:59 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2019-07-03 15:19:35 +1000
commit24911acd64cee411c9e626d3d0ca0733805b009b (patch)
treeee5b95b7fc938665ccab4726d21b21a063fa9604 /arch/powerpc/include/asm
parenta278e7ea608bea5fe6df9b6ae91fa134655c5d2c (diff)
downloadlinux-24911acd64cee411c9e626d3d0ca0733805b009b.tar.bz2
powerpc: remove device_to_mask()
Use the dma_get_mask() helper from dma-mapping.h instead, as they are functionally identical. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/iommu.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/powerpc/include/asm/iommu.h b/arch/powerpc/include/asm/iommu.h
index 0ac52392ed99..f98f2864b66a 100644
--- a/arch/powerpc/include/asm/iommu.h
+++ b/arch/powerpc/include/asm/iommu.h
@@ -327,13 +327,5 @@ extern bool iommu_fixed_is_weak;
extern const struct dma_map_ops dma_iommu_ops;
-static inline unsigned long device_to_mask(struct device *dev)
-{
- if (dev->dma_mask && *dev->dma_mask)
- return *dev->dma_mask;
- /* Assume devices without mask can take 32 bit addresses */
- return 0xfffffffful;
-}
-
#endif /* __KERNEL__ */
#endif /* _ASM_IOMMU_H */