|
@@ -324,14 +324,11 @@ static void omap2_mcspi_tx_dma(struct spi_device *spi,
|
|
struct omap2_mcspi *mcspi;
|
|
struct omap2_mcspi *mcspi;
|
|
struct omap2_mcspi_dma *mcspi_dma;
|
|
struct omap2_mcspi_dma *mcspi_dma;
|
|
unsigned int count;
|
|
unsigned int count;
|
|
- const u8 * tx;
|
|
|
|
|
|
|
|
mcspi = spi_master_get_devdata(spi->master);
|
|
mcspi = spi_master_get_devdata(spi->master);
|
|
mcspi_dma = &mcspi->dma_channels[spi->chip_select];
|
|
mcspi_dma = &mcspi->dma_channels[spi->chip_select];
|
|
count = xfer->len;
|
|
count = xfer->len;
|
|
|
|
|
|
- tx = xfer->tx_buf;
|
|
|
|
-
|
|
|
|
if (mcspi_dma->dma_tx) {
|
|
if (mcspi_dma->dma_tx) {
|
|
struct dma_async_tx_descriptor *tx;
|
|
struct dma_async_tx_descriptor *tx;
|
|
struct scatterlist sg;
|
|
struct scatterlist sg;
|