diff options
Diffstat (limited to 'drivers/media/video/omap3isp/ispstat.c')
-rw-r--r-- | drivers/media/video/omap3isp/ispstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/omap3isp/ispstat.c b/drivers/media/video/omap3isp/ispstat.c index 808065948ac1..98af736b9a90 100644 --- a/drivers/media/video/omap3isp/ispstat.c +++ b/drivers/media/video/omap3isp/ispstat.c | |||
@@ -366,7 +366,7 @@ static void isp_stat_bufs_free(struct ispstat *stat) | |||
366 | dma_unmap_sg(isp->dev, buf->iovm->sgt->sgl, | 366 | dma_unmap_sg(isp->dev, buf->iovm->sgt->sgl, |
367 | buf->iovm->sgt->nents, | 367 | buf->iovm->sgt->nents, |
368 | DMA_FROM_DEVICE); | 368 | DMA_FROM_DEVICE); |
369 | iommu_vfree(isp->iommu, buf->iommu_addr); | 369 | iommu_vfree(isp->domain, isp->iommu, buf->iommu_addr); |
370 | } else { | 370 | } else { |
371 | if (!buf->virt_addr) | 371 | if (!buf->virt_addr) |
372 | continue; | 372 | continue; |
@@ -399,8 +399,8 @@ static int isp_stat_bufs_alloc_iommu(struct ispstat *stat, unsigned int size) | |||
399 | struct iovm_struct *iovm; | 399 | struct iovm_struct *iovm; |
400 | 400 | ||
401 | WARN_ON(buf->dma_addr); | 401 | WARN_ON(buf->dma_addr); |
402 | buf->iommu_addr = iommu_vmalloc(isp->iommu, 0, size, | 402 | buf->iommu_addr = iommu_vmalloc(isp->domain, isp->iommu, 0, |
403 | IOMMU_FLAG); | 403 | size, IOMMU_FLAG); |
404 | if (IS_ERR((void *)buf->iommu_addr)) { | 404 | if (IS_ERR((void *)buf->iommu_addr)) { |
405 | dev_err(stat->isp->dev, | 405 | dev_err(stat->isp->dev, |
406 | "%s: Can't acquire memory for " | 406 | "%s: Can't acquire memory for " |