spi: rockchip: add missing spi_master_put
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 15 Feb 2016 08:28:12 +0000 (16:28 +0800)
committerMark Brown <broonie@kernel.org>
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 <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
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;
 }