mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
dma-mapping: Remove exposure of dma_get_[base/size]
Now that dma_get_[base/size] are not needed by other drivers, remove the implementation of dma_get_size(), and limit the scope of dma_get_base() to its original visibility. Change-Id: I38d6024b43608743217ebfd44a35ccb4da714386 Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
6f7e72d4e8
commit
afa801ec6c
2 changed files with 1 additions and 22 deletions
|
|
@ -28,7 +28,7 @@ static inline struct dma_coherent_mem *dev_get_coherent_memory(struct device *de
|
|||
return NULL;
|
||||
}
|
||||
|
||||
dma_addr_t dma_get_device_base(struct device *dev,
|
||||
static inline dma_addr_t dma_get_device_base(struct device *dev,
|
||||
struct dma_coherent_mem * mem)
|
||||
{
|
||||
if (mem->use_dev_dma_pfn_offset)
|
||||
|
|
@ -37,11 +37,6 @@ dma_addr_t dma_get_device_base(struct device *dev,
|
|||
return mem->device_base;
|
||||
}
|
||||
|
||||
unsigned long dma_get_size(struct dma_coherent_mem *mem)
|
||||
{
|
||||
return mem->size << PAGE_SHIFT;
|
||||
}
|
||||
|
||||
static int dma_init_coherent_memory(phys_addr_t phys_addr,
|
||||
dma_addr_t device_addr, size_t size,
|
||||
struct dma_coherent_mem **mem)
|
||||
|
|
|
|||
Loading…
Reference in a new issue