diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2012-10-17 11:32:02 +0200 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2012-12-18 10:32:44 +0530 |
commit | 0ae86057f7a8718ea7f2925ef2f2049ed77e4b03 (patch) | |
tree | 0e5d765d1ab9fde3b1cc61b1f1e0d3da522b2750 | |
parent | 2a168ce8c8584f6ad84b9c90570ef614fc3e57c0 (diff) | |
download | linux-topics-0ae86057f7a8718ea7f2925ef2f2049ed77e4b03.tar.gz |
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>
-rw-r--r-- | drivers/gpu/ion/ion_carveout_heap.c | 2 |
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, |