ARM: 8289/1: dma-mapping: use to_dma_iommu_mapping instead of accessing archdata
authorWill Deacon <will.deacon@arm.com>
Fri, 16 Jan 2015 17:02:15 +0000 (18:02 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 18 Mar 2015 10:15:53 +0000 (10:15 +0000)
commit89cfdb19a88872088a8cf69621e55d41c379f02f
treed8296ed5147f8b6f2ba6b0aafa42c0b248d43fa2
parent1b4bd608763e063ea87e20030e05db005e70177f
ARM: 8289/1: dma-mapping: use to_dma_iommu_mapping instead of accessing archdata

When using the IOMMU-backed DMA ops for a device, we store a pointer to
the dma_iommu_mapping structure (used to keep track of the address
space) in the archdata.mapping field of the struct device.

Rather than access this field directly, use the to_dma_iommu_mapping
helper in dma-mapping, so that we don't really care where the mapping
information is held.

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c