developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | --- a/drivers/spi/spi-mt65xx.c |
| 2 | +++ b/drivers/spi/spi-mt65xx.c |
| 3 | @@ -946,12 +946,10 @@ static int mtk_spi_mem_exec_op(struct sp |
| 4 | reg_val &= ~SPI_CMD_RX_DMA; |
| 5 | writel(reg_val, mdata->base + SPI_CMD_REG); |
| 6 | |
| 7 | +unmap_rx_dma: |
| 8 | if (op->data.dir == SPI_MEM_DATA_IN) |
| 9 | dma_unmap_single(mdata->dev, mdata->rx_dma, |
| 10 | op->data.nbytes, DMA_FROM_DEVICE); |
| 11 | -unmap_rx_dma: |
| 12 | - dma_unmap_single(mdata->dev, mdata->rx_dma, |
| 13 | - op->data.nbytes, DMA_FROM_DEVICE); |
| 14 | unmap_tx_dma: |
| 15 | dma_unmap_single(mdata->dev, mdata->tx_dma, |
| 16 | tx_size, DMA_TO_DEVICE); |