Commit caaf3f12 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Greg Kroah-Hartman

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.
Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f597eac
...@@ -142,6 +142,8 @@ static struct ion_heap_ops carveout_heap_ops = { ...@@ -142,6 +142,8 @@ static struct ion_heap_ops carveout_heap_ops = {
.allocate = ion_carveout_heap_allocate, .allocate = ion_carveout_heap_allocate,
.free = ion_carveout_heap_free, .free = ion_carveout_heap_free,
.phys = ion_carveout_heap_phys, .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_user = ion_carveout_heap_map_user,
.map_kernel = ion_carveout_heap_map_kernel, .map_kernel = ion_carveout_heap_map_kernel,
.unmap_kernel = ion_carveout_heap_unmap_kernel, .unmap_kernel = ion_carveout_heap_unmap_kernel,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment