aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/imx-sdma.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index e58dbf638cc9..46e334d48e8d 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -394,6 +394,11 @@ static int sdma_config_ownership(struct sdma_channel *sdmac,
394 return 0; 394 return 0;
395} 395}
396 396
397static void sdma_enable_channel(struct sdma_engine *sdma, int channel)
398{
399 __raw_writel(1 << channel, sdma->regs + SDMA_H_START);
400}
401
397/* 402/*
398 * sdma_run_channel - run a channel and wait till it's done 403 * sdma_run_channel - run a channel and wait till it's done
399 */ 404 */
@@ -405,7 +410,7 @@ static int sdma_run_channel(struct sdma_channel *sdmac)
405 410
406 init_completion(&sdmac->done); 411 init_completion(&sdmac->done);
407 412
408 __raw_writel(1 << channel, sdma->regs + SDMA_H_START); 413 sdma_enable_channel(sdma, channel);
409 414
410 ret = wait_for_completion_timeout(&sdmac->done, HZ); 415 ret = wait_for_completion_timeout(&sdmac->done, HZ);
411 416
@@ -811,11 +816,6 @@ out:
811 return ret; 816 return ret;
812} 817}
813 818
814static void sdma_enable_channel(struct sdma_engine *sdma, int channel)
815{
816 __raw_writel(1 << channel, sdma->regs + SDMA_H_START);
817}
818
819static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdmac) 819static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdmac)
820{ 820{
821 dma_cookie_t cookie = sdmac->chan.cookie; 821 dma_cookie_t cookie = sdmac->chan.cookie;