diff options
| author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2012-10-17 11:32:02 +0200 |
|---|---|---|
| committer | Arve Hjønnevåg <arve@android.com> | 2013-07-01 14:16:15 -0700 |
| commit | 18406bfbb491f8ad18808229ec1732021ce67c81 (patch) | |
| tree | ccd3ca6d45570ee6b11d7a9a1761e8fe5ef6bb40 | |
| parent | e4893092cf9b2e1d764ebed00ef3e1a0646c054c (diff) | |
| download | olio-linux-3.10-18406bfbb491f8ad18808229ec1732021ce67c81.tar.xz olio-linux-3.10-18406bfbb491f8ad18808229ec1732021ce67c81.zip | |
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, |