Message ID | 412f7eb1cf8990e0a3a2153f4c577298deab623e.1607286887.git.lukas@wunner.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 373afef350a93519b4b8d636b0895da8650b714b |
Headers | show |
Series | SPI probe/remove sanitization for 5.11 | expand |
diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index 818f2b22875d..7453a1dbbc06 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c @@ -1040,13 +1040,13 @@ static int davinci_spi_remove(struct platform_device *pdev) spi_bitbang_stop(&dspi->bitbang); clk_disable_unprepare(dspi->clk); - spi_master_put(master); if (dspi->dma_rx) { dma_release_channel(dspi->dma_rx); dma_release_channel(dspi->dma_tx); } + spi_master_put(master); return 0; }