]> Pileus Git - ~andy/linux/blobdiff - drivers/spi/spi-davinci.c
Merge remote-tracking branch 'spi/topic/pdata' into spi-next
[~andy/linux] / drivers / spi / spi-davinci.c
index 5cd6398e970e5a9e9774307694775d5ccbefb48a..8fbfe2483ffdd12c20683e50194877c1a1ac85ca 100644 (file)
@@ -609,7 +609,7 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t)
                else
                        buf = (void *)t->tx_buf;
                t->tx_dma = dma_map_single(&spi->dev, buf,
-                               t->len, DMA_FROM_DEVICE);
+                               t->len, DMA_TO_DEVICE);
                if (!t->tx_dma) {
                        ret = -EFAULT;
                        goto err_tx_map;