dma-buf: rk_heaps: export rk_dma_heap_put

Change-Id: If5e55cc6528a86c8dfaea4ec6c7afb99e4df6087
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
Simon Xue
2025-08-26 18:44:01 +08:00
committed by Tao Huang
parent ae9109eca6
commit 9abccf14b4
2 changed files with 11 additions and 0 deletions

View File

@@ -361,6 +361,7 @@ void rk_dma_heap_put(struct rk_dma_heap *h)
kref_put(&h->refcount, rk_dma_heap_release);
mutex_unlock(&rk_heap_list_lock);
}
EXPORT_SYMBOL_GPL(rk_dma_heap_put);
/**
* rk_dma_heap_get_dev() - get device struct for the heap

View File

@@ -33,6 +33,12 @@ static inline int rk_dma_heap_cma_setup(void)
*/
int rk_dma_heap_set_dev(struct device *heap_dev);
/**
* rk_dma_heap_put - drops a reference to a dmabuf heaps, potentially freeing it
* @heap: heap pointer
*/
void rk_dma_heap_put(struct rk_dma_heap *heap);
/**
* rk_dma_heap_find - Returns the registered dma_heap with the specified name
* @name: Name of the heap to find
@@ -100,6 +106,10 @@ static inline int rk_dma_heap_set_dev(struct device *heap_dev)
return -ENODEV;
}
static inline void rk_dma_heap_put(struct rk_dma_heap *heap)
{
}
static inline struct rk_dma_heap *rk_dma_heap_find(const char *name)
{
return NULL;