Commit 70d6aa0e authored by Christoph Hellwig's avatar Christoph Hellwig

dma-mapping: allow using the global coherent pool for !ARM

Switch an ifdef so that the global coherent pool is initialized for
any architecture that selects the DMA_GLOBAL_POOL symbol insted of
hardcoding ARM.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarDillon Min <dillon.minfei@gmail.com>
parent 31b089bb
...@@ -361,7 +361,9 @@ static int __init rmem_dma_setup(struct reserved_mem *rmem) ...@@ -361,7 +361,9 @@ static int __init rmem_dma_setup(struct reserved_mem *rmem)
pr_err("Reserved memory: regions without no-map are not yet supported\n"); pr_err("Reserved memory: regions without no-map are not yet supported\n");
return -EINVAL; return -EINVAL;
} }
#endif
#ifdef CONFIG_DMA_GLOBAL_POOL
if (of_get_flat_dt_prop(node, "linux,dma-default", NULL)) { if (of_get_flat_dt_prop(node, "linux,dma-default", NULL)) {
WARN(dma_reserved_default_memory, WARN(dma_reserved_default_memory,
"Reserved memory: region for default DMA coherent area is redefined\n"); "Reserved memory: region for default DMA coherent area is redefined\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment