summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-s3c64xx.c
diff options
context:
space:
mode:
authorMark Brown2014-12-05 21:23:06 +0100
committerMark Brown2014-12-07 14:47:21 +0100
commitbc88f11baf5a7e6671eac6fe3131c087d71a646f (patch)
tree8b36acdb58dbd9f4332f91928e9e6f5288792cc8 /drivers/spi/spi-s3c64xx.c
parentspi: s3c64xx: add support for exynos7 SPI controller (diff)
downloadkernel-qcow2-linux-bc88f11baf5a7e6671eac6fe3131c087d71a646f.tar.gz
kernel-qcow2-linux-bc88f11baf5a7e6671eac6fe3131c087d71a646f.tar.xz
kernel-qcow2-linux-bc88f11baf5a7e6671eac6fe3131c087d71a646f.zip
spi/s3c64xx: Remove redundant runtime PM management
The device already asks the core to hold a runtime PM reference while it is active so it is redundant to open code that in the driver itself. Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
-rw-r--r--drivers/spi/spi-s3c64xx.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 59e07cf31598..0f602cba1989 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -346,16 +346,8 @@ static int s3c64xx_spi_prepare_transfer(struct spi_master *spi)
spi->dma_tx = sdd->tx_dma.ch;
}
- ret = pm_runtime_get_sync(&sdd->pdev->dev);
- if (ret < 0) {
- dev_err(dev, "Failed to enable device: %d\n", ret);
- goto out_tx;
- }
-
return 0;
-out_tx:
- dma_release_channel(sdd->tx_dma.ch);
out_rx:
dma_release_channel(sdd->rx_dma.ch);
out:
@@ -372,7 +364,6 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master *spi)
dma_release_channel(sdd->tx_dma.ch);
}
- pm_runtime_put(&sdd->pdev->dev);
return 0;
}