diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2016-02-15 03:28:12 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-15 07:19:53 -0500 |
commit | 844c9f476a43db0bdf61df409026a026ce98ec1b (patch) | |
tree | 211ec95a937e0d3f57c4d729192370d31e82bad9 /drivers/spi | |
parent | b8659adda9e295eca0b10a67f3b15a8644c8ed6f (diff) |
spi: rockchip: add missing spi_master_put
Add missing spi_master_put for rockchip_spi_remove since
it calls spi_master_get already.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-rockchip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index c0f9baee1e91..7cb1b2d710c1 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c | |||
@@ -779,6 +779,8 @@ static int rockchip_spi_remove(struct platform_device *pdev) | |||
779 | if (rs->dma_rx.ch) | 779 | if (rs->dma_rx.ch) |
780 | dma_release_channel(rs->dma_rx.ch); | 780 | dma_release_channel(rs->dma_rx.ch); |
781 | 781 | ||
782 | spi_master_put(master); | ||
783 | |||
782 | return 0; | 784 | return 0; |
783 | } | 785 | } |
784 | 786 | ||