aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-04-12 05:41:30 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-12 07:34:57 -0400
commitdb28dfac99983e70b5a93b6c81c43d2c74fde20d (patch)
tree92c1d839e09a49e20e00f8984c6f460a27b15aef
parentaf93933974d7b4dd1f9003e50bae239760fc7978 (diff)
PM / Runtime: Asyncronous idle|suspend parent devices at removal
For irq safe devices return the runtime reference for the parent by using the asyncronous runtime PM API. Thus we don't have to wait for it to become idle|suspended. Instead we can move on and handle the next device in queue. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/base/power/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
index 1244930e3d7a..ef13ad08afb2 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -1400,5 +1400,5 @@ void pm_runtime_remove(struct device *dev)
1400 if (dev->power.runtime_status == RPM_ACTIVE) 1400 if (dev->power.runtime_status == RPM_ACTIVE)
1401 pm_runtime_set_suspended(dev); 1401 pm_runtime_set_suspended(dev);
1402 if (dev->power.irq_safe && dev->parent) 1402 if (dev->power.irq_safe && dev->parent)
1403 pm_runtime_put_sync(dev->parent); 1403 pm_runtime_put(dev->parent);
1404} 1404}