From e8bbe703942485eb9a223a79063d66dfad3e058e Mon Sep 17 00:00:00 2001 From: Jianqun Xu Date: Tue, 27 Sep 2022 09:00:12 +0800 Subject: [PATCH] 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 Change-Id: I09befb35bb8d4cd042b8c1c66c5d99c7d58fbbb6 --- drivers/dma-buf/heaps/rk_cma_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/heaps/rk_cma_heap.c b/drivers/dma-buf/heaps/rk_cma_heap.c index 3d5245ed298e..7631997e8e21 100644 --- a/drivers/dma-buf/heaps/rk_cma_heap.c +++ b/drivers/dma-buf/heaps/rk_cma_heap.c @@ -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;