aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 1dd8676d7f55..126ca492dd08 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -503,7 +503,7 @@ static int rpm_resume(struct device *dev, int rpmflags)
503 * the resume will actually succeed. 503 * the resume will actually succeed.
504 */ 504 */
505 if (dev->power.no_callbacks && !parent && dev->parent) { 505 if (dev->power.no_callbacks && !parent && dev->parent) {
506 spin_lock(&dev->parent->power.lock); 506 spin_lock_nested(&dev->parent->power.lock, SINGLE_DEPTH_NESTING);
507 if (dev->parent->power.disable_depth > 0 507 if (dev->parent->power.disable_depth > 0
508 || dev->parent->power.ignore_children 508 || dev->parent->power.ignore_children
509 || dev->parent->power.runtime_status == RPM_ACTIVE) { 509 || dev->parent->power.runtime_status == RPM_ACTIVE) {