mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user