Skip to content

Commit 844c9f4

Browse files
shawn1221broonie
authored andcommitted
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>
1 parent b8659ad commit 844c9f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spi-rockchip.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ static int rockchip_spi_remove(struct platform_device *pdev)
779779
if (rs->dma_rx.ch)
780780
dma_release_channel(rs->dma_rx.ch);
781781

782+
spi_master_put(master);
783+
782784
return 0;
783785
}
784786

0 commit comments

Comments
 (0)