linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/2] spi: dw: Avoid useless assignments in generic DMA setup
@ 2020-05-07 11:54 Andy Shevchenko
  2020-05-07 11:54 ` [PATCH v1 2/2] spi: dw: Get rid of dma_inited flag Andy Shevchenko
  2020-05-07 12:43 ` [PATCH v1 1/2] spi: dw: Avoid useless assignments in generic DMA setup Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2020-05-07 11:54 UTC (permalink / raw)
  To: Mark Brown, linux-spi, Wan Ahmad Zainie; +Cc: Andy Shevchenko

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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-dw-mid.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c
index f3c85f92ef12c..8b7b94c5a9ccf 100644
--- a/drivers/spi/spi-dw-mid.c
+++ b/drivers/spi/spi-dw-mid.c
@@ -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)
 {
-	dws->dma_tx = &mid_dma_tx;
-	dws->dma_rx = &mid_dma_rx;
 	dws->dma_ops = &generic_dma_ops;
 }
 #else	/* CONFIG_SPI_DW_MID_DMA */
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-07 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 11:54 [PATCH v1 1/2] spi: dw: Avoid useless assignments in generic DMA setup Andy Shevchenko
2020-05-07 11:54 ` [PATCH v1 2/2] spi: dw: Get rid of dma_inited flag Andy Shevchenko
2020-05-07 12:43 ` [PATCH v1 1/2] spi: dw: Avoid useless assignments in generic DMA setup Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).