]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi/pl022: Minor simplification for runtime pm
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 17 Oct 2012 12:27:08 +0000 (14:27 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 13:14:18 +0000 (22:14 +0900)
In probe pm_runtime_put_autosuspend has the same effect as doing
pm_runtime_put. This due to upper layer in driver core is preventing
the device from being runtime suspended by a pm_runtime_get*.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-pl022.c

index 919464102d33afb2d493ace07c81c80403d1d51d..a9106c936edbeb21bfb87dfab798b77993cf1c3f 100644 (file)
@@ -2248,10 +2248,9 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
                pm_runtime_set_autosuspend_delay(dev,
                        platform_info->autosuspend_delay);
                pm_runtime_use_autosuspend(dev);
-               pm_runtime_put_autosuspend(dev);
-       } else {
-               pm_runtime_put(dev);
        }
+       pm_runtime_put(dev);
+
        return 0;
 
  err_spi_register: