diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi-dw-mid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index ecae30fe28af..1ca8f66ca2ea 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c | |||
@@ -143,8 +143,7 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change) | |||
143 | txconf.dst_addr_width = dws->dma_width; | 143 | txconf.dst_addr_width = dws->dma_width; |
144 | txconf.device_fc = false; | 144 | txconf.device_fc = false; |
145 | 145 | ||
146 | txchan->device->device_control(txchan, DMA_SLAVE_CONFIG, | 146 | dmaengine_slave_config(txchan, &txconf); |
147 | (unsigned long) &txconf); | ||
148 | 147 | ||
149 | memset(&dws->tx_sgl, 0, sizeof(dws->tx_sgl)); | 148 | memset(&dws->tx_sgl, 0, sizeof(dws->tx_sgl)); |
150 | dws->tx_sgl.dma_address = dws->tx_dma; | 149 | dws->tx_sgl.dma_address = dws->tx_dma; |
@@ -166,8 +165,7 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change) | |||
166 | rxconf.src_addr_width = dws->dma_width; | 165 | rxconf.src_addr_width = dws->dma_width; |
167 | rxconf.device_fc = false; | 166 | rxconf.device_fc = false; |
168 | 167 | ||
169 | rxchan->device->device_control(rxchan, DMA_SLAVE_CONFIG, | 168 | dmaengine_slave_config(txchan, &rxconf); |
170 | (unsigned long) &rxconf); | ||
171 | 169 | ||
172 | memset(&dws->rx_sgl, 0, sizeof(dws->rx_sgl)); | 170 | memset(&dws->rx_sgl, 0, sizeof(dws->rx_sgl)); |
173 | dws->rx_sgl.dma_address = dws->rx_dma; | 171 | dws->rx_sgl.dma_address = dws->rx_dma; |