dma-buf: heaps: rk_cma_heap named cma-heap default to be "cma-heap"

The userland (gralloc or libdmaheap) fixed to use a heap name "cma-heap"
to be the device name, without this patch, the dt file should named the
cma default node name as "cma". otherwise it is defaultly to be "reserved"
that make the userland fail to open the device.

This patch fixes the cma-heap default name to "cma-heap".

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I09befb35bb8d4cd042b8c1c66c5d99c7d58fbbb6
This commit is contained in:
Jianqun Xu
2022-09-27 09:00:12 +08:00
committed by Tao Huang
parent 59b87bad33
commit e8bbe70394

View File

@@ -550,7 +550,7 @@ static int __add_cma_heap(struct cma *cma, void *data)
return -ENOMEM;
cma_heap->cma = cma;
exp_info.name = cma_get_name(cma);
exp_info.name = "cma";
exp_info.ops = &cma_heap_ops;
exp_info.priv = cma_heap;