diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-05-07 14:54:49 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-07 13:43:00 +0100 |
commit | a041e672cb57201d152bfc314e52d41e7643375d (patch) | |
tree | 7d1bf6b1c1c1415442ff3fd6cdaf43267e4c28e9 /drivers/spi/spi-dw.h | |
parent | 140e45e1e62dd56ed4c264db1443a5d4f5f40352 (diff) |
spi: dw: Get rid of dma_inited flag
This flag is superfluous in all cases where it's being used, i.e.
* ->can_dma() won't be called without dma_inited == 1
* DMA ->exit() callback can rely on txchan and rxchan variables
So, get rid of dma_inited flag.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200507115449.8093-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw.h')
-rw-r--r-- | drivers/spi/spi-dw.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h index 490cff260a3e..e92d43b9a9e6 100644 --- a/drivers/spi/spi-dw.h +++ b/drivers/spi/spi-dw.h @@ -141,7 +141,6 @@ struct dw_spi { u32 current_freq; /* frequency in hz */ /* DMA info */ - int dma_inited; struct dma_chan *txchan; struct dma_chan *rxchan; unsigned long dma_chan_busy; |