]> Git Repo - linux.git/commitdiff
spi: rockchip: add missing spi_master_put
authorShawn Lin <[email protected]>
Mon, 15 Feb 2016 08:28:12 +0000 (16:28 +0800)
committerMark Brown <[email protected]>
Mon, 15 Feb 2016 12:19:53 +0000 (12:19 +0000)
Add missing spi_master_put for rockchip_spi_remove since
it calls spi_master_get already.

Signed-off-by: Shawn Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-rockchip.c

index c0f9baee1e912468285019c00462237af368efb6..7cb1b2d710c10f7aab6c245a31d34e5439dfcbf0 100644 (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;
 }
 
This page took 0.05694 seconds and 4 git commands to generate.