]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
spi/s3c64xx: Add missing pm_runtime_set_active() call in probe()
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 17 Oct 2013 16:06:46 +0000 (18:06 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 17 Oct 2013 23:33:11 +0000 (00:33 +0100)
Mark device as PM runtime active during initialization to reflect
actual device power/clocks state. This reduces the enable count for SPI
bus controller gate clock so it can be disabled when the bus controller
is not used.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c

index a80376dc3a102d04684f27934a42412be3e851d7..05fab71c1c45751f3eedc0f5ea621ee8b7ad5c8d 100644 (file)
@@ -1428,6 +1428,7 @@ 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_set_active(&pdev->dev);
        pm_runtime_enable(&pdev->dev);
 
        if (spi_register_master(master)) {