[media] omap3isp: stat: Use the DMA API

Replace the OMAP-specific IOMMU API usage by the DMA API. All buffers
are now allocated using dma_alloc_coherent() and the related sg table is
retrieved using dma_get_sgtable() for sync operations.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Laurent Pinchart
2014-01-02 20:06:08 -03:00
committed by Mauro Carvalho Chehab
parent 84ac0f09ae
commit 0e24e90f2c
2 changed files with 53 additions and 72 deletions

View File

@@ -46,7 +46,7 @@
struct ispstat;
struct ispstat_buffer {
const struct sg_table *sgt;
struct sg_table sgt;
void *virt_addr;
dma_addr_t dma_addr;
struct timespec ts;