]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e2dc50cc7238503d3eae752717b29db78634143
tree99b3c8c2d2e02c717dbd3e441a68d97bea4b3910
parenta82bbcd6ec9f1c530ed4f97157b9946d924f655f
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