Merge remote-tracking branches 'spi/topic/res', 'spi/topic/rockchip', 'spi/topic...
[linux-2.6-block.git] / drivers / spi / spi-rockchip.c
index 5488597cfad4016af4c907f097ab49ff2d318479..26e2688c104ec9e6ba314264b63318a65048596f 100644 (file)
@@ -762,6 +762,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)
        return 0;
 
 err_register_master:
+       pm_runtime_disable(&pdev->dev);
        if (rs->dma_tx.ch)
                dma_release_channel(rs->dma_tx.ch);
        if (rs->dma_rx.ch)
@@ -791,6 +792,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;
 }