diff options
author | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
commit | 62b8c978ee6b8d135d9e7953221de58000dba986 (patch) | |
tree | 683b04b2e627f6710c22c151b23c8cc9a165315e /lib/genalloc.c | |
parent | 78fd82238d0e5716578c326404184a27ba67fd6e (diff) | |
download | linux-fsl-qoriq-62b8c978ee6b8d135d9e7953221de58000dba986.tar.xz |
Rewind v3.13-rc3+ (78fd82238d0e5716) to v3.12
Diffstat (limited to 'lib/genalloc.c')
-rw-r--r-- | lib/genalloc.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/genalloc.c b/lib/genalloc.c index dda3116..26cf20b 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c @@ -313,34 +313,6 @@ retry: EXPORT_SYMBOL(gen_pool_alloc); /** - * gen_pool_dma_alloc - allocate special memory from the pool for DMA usage - * @pool: pool to allocate from - * @size: number of bytes to allocate from the pool - * @dma: dma-view physical address - * - * Allocate the requested number of bytes from the specified pool. - * Uses the pool allocation function (with first-fit algorithm by default). - * Can not be used in NMI handler on architectures without - * NMI-safe cmpxchg implementation. - */ -void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) -{ - unsigned long vaddr; - - if (!pool) - return NULL; - - vaddr = gen_pool_alloc(pool, size); - if (!vaddr) - return NULL; - - *dma = gen_pool_virt_to_phys(pool, vaddr); - - return (void *)vaddr; -} -EXPORT_SYMBOL(gen_pool_dma_alloc); - -/** * gen_pool_free - free allocated special memory back to the pool * @pool: pool to free to * @addr: starting address of memory to free back to pool |