summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-rockchip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-rockchip.c')
-rw-r--r--drivers/spi/spi-rockchip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c
index 79a8bc4f6cec..7cb1b2d710c1 100644
--- a/drivers/spi/spi-rockchip.c
+++ b/drivers/spi/spi-rockchip.c
@@ -749,6 +749,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)
749 return 0; 749 return 0;
750 750
751err_register_master: 751err_register_master:
752 pm_runtime_disable(&pdev->dev);
752 if (rs->dma_tx.ch) 753 if (rs->dma_tx.ch)
753 dma_release_channel(rs->dma_tx.ch); 754 dma_release_channel(rs->dma_tx.ch);
754 if (rs->dma_rx.ch) 755 if (rs->dma_rx.ch)
@@ -778,6 +779,8 @@ static int rockchip_spi_remove(struct platform_device *pdev)
778 if (rs->dma_rx.ch) 779 if (rs->dma_rx.ch)
779 dma_release_channel(rs->dma_rx.ch); 780 dma_release_channel(rs->dma_rx.ch);
780 781
782 spi_master_put(master);
783
781 return 0; 784 return 0;
782} 785}
783 786