aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2012-10-17 11:32:02 +0200
committerArve Hjønnevåg <arve@android.com>2013-04-29 14:43:15 -0700
commit4f8fd189e3284d17ae056df7743f988a7454cae2 (patch)
tree6e623a3c4f87ada38ae7d38187c7d547fa537198 /drivers
parente28d70714f51842f5d605ccfd2e8eee3953762a3 (diff)
gpu: ion: fix carveout ops
when using carveout heap ion_buffer_create function failed because map_dma and unmap_dma operations aren't set by carveout heap. Change-Id: I817bfad742abfab10b01d9b3d2e18bdf812a1307 Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/ion/ion_carveout_heap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/ion/ion_carveout_heap.c b/drivers/gpu/ion/ion_carveout_heap.c
index 5b6255ba2da..ce8d311968f 100644
--- a/drivers/gpu/ion/ion_carveout_heap.c
+++ b/drivers/gpu/ion/ion_carveout_heap.c
@@ -142,6 +142,8 @@ static struct ion_heap_ops carveout_heap_ops = {
.allocate = ion_carveout_heap_allocate,
.free = ion_carveout_heap_free,
.phys = ion_carveout_heap_phys,
+ .map_dma = ion_carveout_heap_map_dma,
+ .unmap_dma = ion_carveout_heap_unmap_dma,
.map_user = ion_carveout_heap_map_user,
.map_kernel = ion_carveout_heap_map_kernel,
.unmap_kernel = ion_carveout_heap_unmap_kernel,