diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2012-10-17 08:27:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-17 09:14:18 -0400 |
commit | 0df349945752bf04cee52babf266bbf1f4812193 (patch) | |
tree | 0c2e103a667c837b088a04d9ab4fbee02a457381 /drivers/spi/spi-pl022.c | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) |
spi/pl022: Minor simplification for runtime pm
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>
Diffstat (limited to 'drivers/spi/spi-pl022.c')
-rw-r--r-- | drivers/spi/spi-pl022.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 919464102d3..a9106c936ed 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -2248,10 +2248,9 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id) | |||
2248 | pm_runtime_set_autosuspend_delay(dev, | 2248 | pm_runtime_set_autosuspend_delay(dev, |
2249 | platform_info->autosuspend_delay); | 2249 | platform_info->autosuspend_delay); |
2250 | pm_runtime_use_autosuspend(dev); | 2250 | pm_runtime_use_autosuspend(dev); |
2251 | pm_runtime_put_autosuspend(dev); | ||
2252 | } else { | ||
2253 | pm_runtime_put(dev); | ||
2254 | } | 2251 | } |
2252 | pm_runtime_put(dev); | ||
2253 | |||
2255 | return 0; | 2254 | return 0; |
2256 | 2255 | ||
2257 | err_spi_register: | 2256 | err_spi_register: |