Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dma-mapping: Add macro to_dma_iommu_mapping()

This can be built without CONFIG_ARM_DMA_USE_IOMMU.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

authored by

Hiroshi Doyu and committed by
Marek Szyprowski
fab112a3 d09e1333

+6
+6
arch/arm/include/asm/device.h
··· 27 27 #endif 28 28 }; 29 29 30 + #ifdef CONFIG_ARM_DMA_USE_IOMMU 31 + #define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping) 32 + #else 33 + #define to_dma_iommu_mapping(dev) NULL 34 + #endif 35 + 30 36 #endif