diff options
-rw-r--r-- | drivers/spi/spi-dw-mid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index 6d207afec8cb..0d88e4aab73e 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c | |||
@@ -89,6 +89,8 @@ err_exit: | |||
89 | 89 | ||
90 | static void mid_spi_dma_exit(struct dw_spi *dws) | 90 | static void mid_spi_dma_exit(struct dw_spi *dws) |
91 | { | 91 | { |
92 | if (!dws->dma_inited) | ||
93 | return; | ||
92 | dma_release_channel(dws->txchan); | 94 | dma_release_channel(dws->txchan); |
93 | dma_release_channel(dws->rxchan); | 95 | dma_release_channel(dws->rxchan); |
94 | } | 96 | } |