diff options
Diffstat (limited to 'drivers/gpu/ion/ion_system_heap.c')
-rw-r--r-- | drivers/gpu/ion/ion_system_heap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/ion/ion_system_heap.c b/drivers/gpu/ion/ion_system_heap.c index c1061a801a4..1e06bd97831 100644 --- a/drivers/gpu/ion/ion_system_heap.c +++ b/drivers/gpu/ion/ion_system_heap.c | |||
@@ -78,8 +78,9 @@ static struct page *alloc_buffer_page(struct ion_system_heap *heap, | |||
78 | page = alloc_pages(gfp_flags, order); | 78 | page = alloc_pages(gfp_flags, order); |
79 | if (!page) | 79 | if (!page) |
80 | return 0; | 80 | return 0; |
81 | __dma_page_cpu_to_dev(page, 0, PAGE_SIZE << order, | 81 | arm_dma_ops.sync_single_for_device(NULL, |
82 | DMA_BIDIRECTIONAL); | 82 | pfn_to_dma(NULL, page_to_pfn(page)), |
83 | PAGE_SIZE << order, DMA_BIDIRECTIONAL); | ||
83 | } | 84 | } |
84 | if (!page) | 85 | if (!page) |
85 | return 0; | 86 | return 0; |