base: EXPORT_SYMBOL for dma_alloc_from_contiguous && dma_release_from_contiguous
authorJiacheng Mei <jiacheng.mei@amlogic.com>
Tue, 29 May 2018 07:22:58 +0000 (15:22 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 29 Jun 2018 07:15:24 +0000 (00:15 -0700)
PD#165090: EXPORT_SYMBOL for dma_alloc_from_contiguous && dma_release_from_contiguous

Change-Id: I3809ed9a393e99fad9c63e3cbc60003de2ed8748
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
drivers/base/dma-contiguous.c

index e167a1e..e4e36df 100644 (file)
@@ -195,6 +195,7 @@ struct page *dma_alloc_from_contiguous(struct device *dev, size_t count,
 
        return cma_alloc(dev_get_cma_area(dev), count, align);
 }
+EXPORT_SYMBOL(dma_alloc_from_contiguous);
 
 /**
  * dma_release_from_contiguous() - release allocated pages
@@ -211,7 +212,7 @@ bool dma_release_from_contiguous(struct device *dev, struct page *pages,
 {
        return cma_release(dev_get_cma_area(dev), pages, count);
 }
-
+EXPORT_SYMBOL(dma_release_from_contiguous);
 /*
  * Support for reserved memory regions defined in device tree
  */