aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/imx-sdma.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2011-01-19 16:50:35 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-31 06:41:43 -0500
commit1797c33f0edcdcc9a483c06233a203786666a97f (patch)
tree2916f6f267029f871028347c9fcb9739f7110329 /drivers/dma/imx-sdma.c
parent1bae4ce27c9c90344f23c65ea6966c50ffeae2f5 (diff)
dmaengine: imx-sdma: remove IMX_DMA_SG_LOOP handling in sdma_prep_slave_sg()
This is a leftover from the time that the driver did not have sdma_prep_dma_cyclic callback and implemented sound dma as a looped sg chain. And it can be removed now. Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r--drivers/dma/imx-sdma.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index d5a5d4d9c19b..cf8cc0b8e7f7 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -931,12 +931,6 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(
931 931
932 param = BD_DONE | BD_EXTD | BD_CONT; 932 param = BD_DONE | BD_EXTD | BD_CONT;
933 933
934 if (sdmac->flags & IMX_DMA_SG_LOOP) {
935 param |= BD_INTR;
936 if (i + 1 == sg_len)
937 param |= BD_WRAP;
938 }
939
940 if (i + 1 == sg_len) 934 if (i + 1 == sg_len)
941 param |= BD_INTR; 935 param |= BD_INTR;
942 936