diff options
-rw-r--r-- | drivers/spi/spi-imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 6fea4af51c41..fe5ee3322a24 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c | |||
@@ -903,7 +903,7 @@ static int spi_imx_dma_transfer(struct spi_imx_data *spi_imx, | |||
903 | 903 | ||
904 | if (tx) { | 904 | if (tx) { |
905 | desc_tx = dmaengine_prep_slave_sg(master->dma_tx, | 905 | desc_tx = dmaengine_prep_slave_sg(master->dma_tx, |
906 | tx->sgl, tx->nents, DMA_TO_DEVICE, | 906 | tx->sgl, tx->nents, DMA_MEM_TO_DEV, |
907 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 907 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
908 | if (!desc_tx) | 908 | if (!desc_tx) |
909 | goto no_dma; | 909 | goto no_dma; |
@@ -915,7 +915,7 @@ static int spi_imx_dma_transfer(struct spi_imx_data *spi_imx, | |||
915 | 915 | ||
916 | if (rx) { | 916 | if (rx) { |
917 | desc_rx = dmaengine_prep_slave_sg(master->dma_rx, | 917 | desc_rx = dmaengine_prep_slave_sg(master->dma_rx, |
918 | rx->sgl, rx->nents, DMA_FROM_DEVICE, | 918 | rx->sgl, rx->nents, DMA_DEV_TO_MEM, |
919 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 919 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
920 | if (!desc_rx) | 920 | if (!desc_rx) |
921 | goto no_dma; | 921 | goto no_dma; |