]> www.infradead.org Git - users/hch/misc.git/commitdiff
ARM: 8699/1: dma-mapping: Remove init_dma_coherent_pool_size()
authorVladimir Murzin <vladimir.murzin@arm.com>
Mon, 25 Sep 2017 09:31:15 +0000 (10:31 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 28 Sep 2017 10:13:06 +0000 (11:13 +0100)
There are no users of init_dma_coherent_pool_size() left due to
387870f ("mm: dmapool: use provided gfp flags for all
dma_alloc_coherent() calls"), so remove it.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/dma-mapping.h
arch/arm/mm/dma-mapping.c

index 4e0285a66ef87e5328c1af52ad801c332c011250..462803f3a6a090b335e5fd78dd5c85174816149e 100644 (file)
@@ -189,13 +189,6 @@ extern int arm_dma_mmap(struct device *dev, struct vm_area_struct *vma,
                        void *cpu_addr, dma_addr_t dma_addr, size_t size,
                        unsigned long attrs);
 
-/*
- * This can be called during early boot to increase the size of the atomic
- * coherent DMA pool above the default value of 256KiB. It must be called
- * before postcore_initcall.
- */
-extern void __init init_dma_coherent_pool_size(unsigned long size);
-
 /*
  * For SA-1111, IXP425, and ADI systems  the dma-mapping functions are "magic"
  * and utilize bounce buffers as needed to work around limited DMA windows.
index 24519f4508b9a0c93e1fee73cfc2e21dce973be0..ada8eb206a90b6824427d24c5019100895d225f2 100644 (file)
@@ -393,21 +393,6 @@ static int __init early_coherent_pool(char *p)
 }
 early_param("coherent_pool", early_coherent_pool);
 
-void __init init_dma_coherent_pool_size(unsigned long size)
-{
-       /*
-        * Catch any attempt to set the pool size too late.
-        */
-       BUG_ON(atomic_pool);
-
-       /*
-        * Set architecture specific coherent pool size only if
-        * it has not been changed by kernel command line parameter.
-        */
-       if (atomic_pool_size == DEFAULT_DMA_COHERENT_POOL_SIZE)
-               atomic_pool_size = size;
-}
-
 /*
  * Initialise the coherent pool for atomic allocations.
  */