gpu: ion: fix carveout ops
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Fri, 13 Dec 2013 22:24:21 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:40 +0000 (08:55 -0800)
when using carveout heap ion_buffer_create function failed because
map_dma and unmap_dma operations aren't set by carveout heap.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_carveout_heap.c

index daa348e3a65acd0fdfb8011bd1cb65ab491bc8db..fd641688127c52376ac945326278dbcd06c18ed2 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,