projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09e133
)
ARM: dma-mapping: Add macro to_dma_iommu_mapping()
author
Hiroshi Doyu
<hdoyu@nvidia.com>
Thu, 24 Jan 2013 13:16:56 +0000
(15:16 +0200)
committer
Marek Szyprowski
<m.szyprowski@samsung.com>
Mon, 25 Feb 2013 14:30:41 +0000
(15:30 +0100)
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>
arch/arm/include/asm/device.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/device.h
b/arch/arm/include/asm/device.h
index
b69c0d3
..
dc662fc
100644
(file)
--- a/
arch/arm/include/asm/device.h
+++ b/
arch/arm/include/asm/device.h
@@
-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