diff options
| author | Arve Hjønnevåg <arve@android.com> | 2012-11-26 17:14:58 -0800 | 
|---|---|---|
| committer | Arve Hjønnevåg <arve@android.com> | 2013-07-01 15:51:51 -0700 | 
| commit | 3bb28260e465782c48ce5006c99b5641200e91a2 (patch) | |
| tree | 8c82636ecaa18943bf683113a25a01ded32afd5b /drivers/gpu/ion/ion_page_pool.c | |
| parent | 4b4559062472f7e81d0a6831538686d989226864 (diff) | |
| download | olio-linux-3.10-3bb28260e465782c48ce5006c99b5641200e91a2.tar.xz olio-linux-3.10-3bb28260e465782c48ce5006c99b5641200e91a2.zip  | |
gpu: ion: __dma_page_cpu_to_dev -> arm_dma_ops.sync_single_for_device hack
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'drivers/gpu/ion/ion_page_pool.c')
| -rw-r--r-- | drivers/gpu/ion/ion_page_pool.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/ion/ion_page_pool.c b/drivers/gpu/ion/ion_page_pool.c index 8708bbfd61b..7e00f51292e 100644 --- a/drivers/gpu/ion/ion_page_pool.c +++ b/drivers/gpu/ion/ion_page_pool.c @@ -37,8 +37,10 @@ static void *ion_page_pool_alloc_pages(struct ion_page_pool *pool)  	/* 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 */ -	__dma_page_cpu_to_dev(page, 0, PAGE_SIZE << pool->order, -			      DMA_BIDIRECTIONAL); +	arm_dma_ops.sync_single_for_device(NULL, +					   pfn_to_dma(NULL, page_to_pfn(page)), +					   PAGE_SIZE << pool->order, +					   DMA_BIDIRECTIONAL);  	return page;  }  |