提交 c1199875 编写于 作者: V Vinod Koul

dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations

The memory allocation in DMA callbacks should use GFP_NOWAIT, so
update this one and fix code alignment for this call while at it.
Signed-off-by: NVinod Koul <vkoul@kernel.org>
上级 680302c4
...@@ -1157,8 +1157,8 @@ static int sdma_alloc_bd(struct sdma_desc *desc) ...@@ -1157,8 +1157,8 @@ static int sdma_alloc_bd(struct sdma_desc *desc)
{ {
int ret = 0; int ret = 0;
desc->bd = dma_pool_alloc(desc->sdmac->bd_pool, GFP_ATOMIC, desc->bd = dma_pool_alloc(desc->sdmac->bd_pool, GFP_NOWAIT,
&desc->bd_phys); &desc->bd_phys);
if (!desc->bd) { if (!desc->bd) {
ret = -ENOMEM; ret = -ENOMEM;
goto out; goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册