diff options
author | Vladimir Murzin <vladimir.murzin@arm.com> | 2017-09-25 11:25:53 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-09-28 12:13:04 +0200 |
commit | acb624488df3073be4e6f3c0a86b155c40d63ab2 (patch) | |
tree | ba9a831af7913d94bd28c7e690c1737fb015ad9d /arch/arm/mm/dma-mapping.c | |
parent | ARM: 8696/1: mm: Remove dead code in mem_init() (diff) | |
download | linux-acb624488df3073be4e6f3c0a86b155c40d63ab2.tar.xz linux-acb624488df3073be4e6f3c0a86b155c40d63ab2.zip |
ARM: 8697/1: dma-mapping: Do not pass data to gen_pool_set_algo()
gen_pool_first_fit_order_align() does not make use of additional data,
so pass plain NULL there.
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm/dma-mapping.c')
-rw-r--r-- | arch/arm/mm/dma-mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index fcf1473d6fed..785606e3783e 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -443,7 +443,7 @@ static int __init atomic_pool_init(void) gen_pool_set_algo(atomic_pool, gen_pool_first_fit_order_align, - (void *)PAGE_SHIFT); + NULL); pr_info("DMA: preallocated %zu KiB pool for atomic coherent allocations\n", atomic_pool_size / 1024); return 0; |