ion: fix dma APIs
[deliverable/linux.git] / drivers / staging / android / ion / ion_page_pool.c
index 855f30c3967ae345fb78af2637514c4d48ec8c18..979d2e4a6b12e3063c707bbe8f76f4f6141aa67f 100644 (file)
@@ -34,13 +34,8 @@ static void *ion_page_pool_alloc_pages(struct ion_page_pool *pool)
 
        if (!page)
                return NULL;
-       /* this is only being used to flush the page for dma,
-          this api is not really suitable for calling from a driver
-          but no better way to flush a page for dma exist at this time */
-       arm_dma_ops.sync_single_for_device(NULL,
-                                          pfn_to_dma(NULL, page_to_pfn(page)),
-                                          PAGE_SIZE << pool->order,
-                                          DMA_BIDIRECTIONAL);
+       ion_pages_sync_for_device(NULL, page, PAGE_SIZE << pool->order,
+                                               DMA_BIDIRECTIONAL);
        return page;
 }
 
This page took 0.025269 seconds and 5 git commands to generate.