dmaengine: imx-sdma: pass ->dev to dma_alloc_coherent() API
authorAndy Duan <fugang.duan@nxp.com>
Fri, 11 Jan 2019 14:29:49 +0000 (14:29 +0000)
committerVinod Koul <vkoul@kernel.org>
Sun, 20 Jan 2019 10:55:31 +0000 (16:25 +0530)
commitceaf52265148d3a5ca24237fd1c709caa5f46184
tree99b3c8c2d2e02c717dbd3e441a68d97bea4b3910
parent452fd6dc86209c23501c82183c1fbbbfa42c0a7a
dmaengine: imx-sdma: pass ->dev to dma_alloc_coherent() API

Pass ->dev to dma_alloc_coherent() API. We need this
because dma_alloc_coherent() makes use of dev parameter
and receiving NULL will result in a crash.

Signed-off-by: Andy Duan <fugang.duan@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c