summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm
diff options
context:
space:
mode:
authorVladimir Murzin <vladimir.murzin@arm.com>2017-08-14 10:55:46 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2017-08-21 17:24:53 +0200
commit2fa59ec8ccf38bbc2193ae61aed9afa0687974e0 (patch)
tree97926bda15f0e9cc6b9c2b6d00301cb4a2db8439 /arch/arm64/mm
parentarm64: Remove the !CONFIG_ARM64_HW_AFDBM alternative code paths (diff)
downloadlinux-2fa59ec8ccf38bbc2193ae61aed9afa0687974e0.tar.xz
linux-2fa59ec8ccf38bbc2193ae61aed9afa0687974e0.zip
arm64: 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: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r--arch/arm64/mm/dma-mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c
index f27d4dd04384..7038e1a61397 100644
--- a/arch/arm64/mm/dma-mapping.c
+++ b/arch/arm64/mm/dma-mapping.c
@@ -425,7 +425,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 allocations\n",
atomic_pool_size / 1024);