gpu: ion: fix carveout ops
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 17 Oct 2012 09:32:02 +0000 (11:32 +0200)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:15 +0000 (14:16 -0700)
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>
drivers/gpu/ion/ion_carveout_heap.c

index 5b6255ba2da55a1f546f4868177900b98b18f20e..ce8d311968f604a278ad3fc5be5f6902c895ec01 100644 (file)
@@ -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,