spi: rockchip: migrate to dmaengine_terminate_async
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 9 Mar 2016 08:11:23 +0000 (16:11 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Mar 2016 09:10:18 +0000 (16:10 +0700)
dmaengine_terminate_all is deprecated, let's use
dmaengine_terminate_async for interrupt handling.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c

index aa8528e9840c4ee2cf4346968c1d4c09f9ac973c..b6b8a0bb5b2f9bc888c3f35a4f1e82d1048a7972 100644 (file)
@@ -322,12 +322,12 @@ static void rockchip_spi_handle_err(struct spi_master *master,
         */
        if (rs->use_dma) {
                if (rs->state & RXBUSY) {
-                       dmaengine_terminate_all(rs->dma_rx.ch);
+                       dmaengine_terminate_async(rs->dma_rx.ch);
                        flush_fifo(rs);
                }
 
                if (rs->state & TXBUSY)
-                       dmaengine_terminate_all(rs->dma_tx.ch);
+                       dmaengine_terminate_async(rs->dma_tx.ch);
        }
 
        spin_unlock_irqrestore(&rs->lock, flags);