summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-s3c64xx.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-09-27 15:27:56 +0200
committerMark Brown <broonie@linaro.org>2013-09-27 15:27:56 +0200
commit0cab71e7014dc73a84e1d14d9b02e39c48241580 (patch)
tree17b25202f70b62d43bca6bdf6ca9dc61f3daf0aa /drivers/spi/spi-s3c64xx.c
parentspi: s3c64xx: Allow build on all Samsung platforms (diff)
parentspi/s3c64xx: Ensure runtime PM is enabled prior to registration (diff)
downloadlinux-0cab71e7014dc73a84e1d14d9b02e39c48241580.tar.xz
linux-0cab71e7014dc73a84e1d14d9b02e39c48241580.zip
Merge remote-tracking branch 'spi/fix/s3c64xx' into spi-s3c64xx
Conflicts: drivers/spi/spi-s3c64xx.c
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
-rw-r--r--drivers/spi/spi-s3c64xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 84cc6ac801fe..229c6b994be3 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1428,6 +1428,8 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
S3C64XX_SPI_INT_TX_OVERRUN_EN | S3C64XX_SPI_INT_TX_UNDERRUN_EN,
sdd->regs + S3C64XX_SPI_INT_EN);
+ pm_runtime_enable(&pdev->dev);
+
ret = devm_spi_register_master(&pdev->dev, master);
if (ret != 0) {
dev_err(&pdev->dev, "cannot register SPI master: %d\n", ret);
@@ -1440,8 +1442,6 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
mem_res,
sdd->rx_dma.dmach, sdd->tx_dma.dmach);
- pm_runtime_enable(&pdev->dev);
-
return 0;
err3: