Commit c1199875 authored by Vinod Koul's avatar Vinod Koul
Browse files

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: default avatarVinod Koul <vkoul@kernel.org>
parent 680302c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1157,7 +1157,7 @@ static int sdma_alloc_bd(struct sdma_desc *desc)
{
	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);
	if (!desc->bd) {
		ret = -ENOMEM;