1
0
Fork 0

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>
hifive-unleashed-5.1
Shawn Lin 2016-02-15 16:28:12 +08:00 committed by Mark Brown
parent b8659adda9
commit 844c9f476a
1 changed files with 2 additions and 0 deletions

View File

@ -779,6 +779,8 @@ static int rockchip_spi_remove(struct platform_device *pdev)
if (rs->dma_rx.ch)
dma_release_channel(rs->dma_rx.ch);
spi_master_put(master);
return 0;
}