Commit 140e45e1 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Mark Brown

spi: dw: Avoid useless assignments in generic DMA setup

Generic DMA setup doesn't rely on certain type of DMA controller and thus
shouldn't use Intel Medfield settings, although it's harmless in this case.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200507115449.8093-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 22d48ad7
...@@ -321,8 +321,6 @@ static const struct dw_spi_dma_ops generic_dma_ops = { ...@@ -321,8 +321,6 @@ static const struct dw_spi_dma_ops generic_dma_ops = {
static void dw_spi_mid_setup_dma_generic(struct dw_spi *dws) static void dw_spi_mid_setup_dma_generic(struct dw_spi *dws)
{ {
dws->dma_tx = &mid_dma_tx;
dws->dma_rx = &mid_dma_rx;
dws->dma_ops = &generic_dma_ops; dws->dma_ops = &generic_dma_ops;
} }
#else /* CONFIG_SPI_DW_MID_DMA */ #else /* CONFIG_SPI_DW_MID_DMA */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment