]> 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)
commit0dcb756b38b2556532d876f96a0b6d30cc4325c9
tree99b3c8c2d2e02c717dbd3e441a68d97bea4b3910
parent3cfa772c791fcc5c42efd871ca4cab30f154f0b4
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