diff options
author | Robin Gong <b38343@freescale.com> | 2014-12-23 16:07:36 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-01-15 21:18:52 -0600 |
commit | 656bd08a7d24341b823b946bfe6d2b22ba5173a4 (patch) | |
tree | a9edf83482ee9fd654720402953e6d0f0ef611bf /drivers | |
parent | bd86f559704af78f5e3209cc9da69bde2676022f (diff) |
MLK-10053 dma: imx-sdma: fix building error
Caused by cherry-pick 260fe87c1d744d8386057d03013e002352f8b181, current
sdma driver remove 'sdmac->mode'.
Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/imx-sdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index d16802532111..b93ceee9b913 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -707,7 +707,7 @@ static void sdma_tasklet(unsigned long data) unsigned long flags; spin_lock_irqsave(&sdmac->lock, flags); - if (sdmac->status != DMA_IN_PROGRESS && sdmac->mode != SDMA_MODE_LOOP) { + if (sdmac->status != DMA_IN_PROGRESS && !(sdmac->flags & IMX_DMA_SG_LOOP)) { spin_unlock_irqrestore(&sdmac->lock, flags); return; } @@ -738,7 +738,7 @@ static irqreturn_t sdma_int_handler(int irq, void *dev_id) sdma_update_channel_loop(sdmac); spin_lock_irqsave(&sdmac->lock, flags); - if (sdmac->status == DMA_IN_PROGRESS || sdmac->mode == SDMA_MODE_LOOP) + if (sdmac->status == DMA_IN_PROGRESS || (sdmac->flags & IMX_DMA_SG_LOOP)) tasklet_schedule(&sdmac->tasklet); spin_unlock_irqrestore(&sdmac->lock, flags); |