diff options
Diffstat (limited to 'drivers/spi/spi-topcliff-pch.c')
-rw-r--r-- | drivers/spi/spi-topcliff-pch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index 6a80749391db..99ec279bc46d 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c | |||
@@ -1076,7 +1076,7 @@ static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw) | |||
1076 | } | 1076 | } |
1077 | sg = dma->sg_rx_p; | 1077 | sg = dma->sg_rx_p; |
1078 | desc_rx = dma->chan_rx->device->device_prep_slave_sg(dma->chan_rx, sg, | 1078 | desc_rx = dma->chan_rx->device->device_prep_slave_sg(dma->chan_rx, sg, |
1079 | num, DMA_FROM_DEVICE, | 1079 | num, DMA_DEV_TO_MEM, |
1080 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 1080 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
1081 | if (!desc_rx) { | 1081 | if (!desc_rx) { |
1082 | dev_err(&data->master->dev, "%s:device_prep_slave_sg Failed\n", | 1082 | dev_err(&data->master->dev, "%s:device_prep_slave_sg Failed\n", |
@@ -1121,7 +1121,7 @@ static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw) | |||
1121 | } | 1121 | } |
1122 | sg = dma->sg_tx_p; | 1122 | sg = dma->sg_tx_p; |
1123 | desc_tx = dma->chan_tx->device->device_prep_slave_sg(dma->chan_tx, | 1123 | desc_tx = dma->chan_tx->device->device_prep_slave_sg(dma->chan_tx, |
1124 | sg, num, DMA_TO_DEVICE, | 1124 | sg, num, DMA_MEM_TO_DEV, |
1125 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 1125 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
1126 | if (!desc_tx) { | 1126 | if (!desc_tx) { |
1127 | dev_err(&data->master->dev, "%s:device_prep_slave_sg Failed\n", | 1127 | dev_err(&data->master->dev, "%s:device_prep_slave_sg Failed\n", |