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

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
...@@ -27,4 +27,10 @@ struct pdev_archdata { ...@@ -27,4 +27,10 @@ struct pdev_archdata {
#endif #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 #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment