diff options
author | Varun Sethi <Varun.Sethi@freescale.com> | 2013-03-28 20:26:02 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-05 16:13:15 (GMT) |
commit | b2e8128d61be3f4765be626eeb5dbf5420861886 (patch) | |
tree | dfeacd843d8e194588d5bf2ccc9bd836d80c656e /drivers/iommu | |
parent | 09e7175b97a8e3eb5e917df46d917b2254d8d0f5 (diff) | |
download | linux-fsl-qoriq-b2e8128d61be3f4765be626eeb5dbf5420861886.tar.xz |
iommu/fsl: Make iova dma_addr_t in the iova_to_phys API.
Make iova dma_addr_t instead of u64. dma_addrt_t is more appropriate in our
case as it is a DMA address. Also, as we support 64 bit physical addresses
dma_addr_t is u64 even on 32 bit e500mc based platforms.
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Change-Id: Icbb83a6eae00a2be86c20b272eb537b095173f36
Reviewed-on: http://git.am.freescale.net:8181/883
Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index bc8ff1f..af6efd8 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -706,7 +706,7 @@ void iommu_detach_group(struct iommu_domain *domain, struct iommu_group *group) } EXPORT_SYMBOL_GPL(iommu_detach_group); -phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, u64 iova) +phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) { if (unlikely(domain->ops->iova_to_phys == NULL)) return 0; |