Commit fab112a3 authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Marek Szyprowski
Browse files

ARM: dma-mapping: Add macro to_dma_iommu_mapping()



This can be built without CONFIG_ARM_DMA_USE_IOMMU.

Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
parent d09e1333
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -27,4 +27,10 @@ struct pdev_archdata {
#endif
};

#ifdef CONFIG_ARM_DMA_USE_IOMMU
#define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping)
#else
#define to_dma_iommu_mapping(dev) NULL
#endif

#endif