diff options
Diffstat (limited to 'drivers/base/power/runtime.c')
-rw-r--r-- | drivers/base/power/runtime.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 0d4587b15c55..5f5c4236f006 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c | |||
@@ -213,8 +213,8 @@ static int rpm_idle(struct device *dev, int rpmflags) | |||
213 | 213 | ||
214 | dev->power.idle_notification = true; | 214 | dev->power.idle_notification = true; |
215 | 215 | ||
216 | if (dev->pwr_domain) | 216 | if (dev->pm_domain) |
217 | callback = dev->pwr_domain->ops.runtime_idle; | 217 | callback = dev->pm_domain->ops.runtime_idle; |
218 | else if (dev->type && dev->type->pm) | 218 | else if (dev->type && dev->type->pm) |
219 | callback = dev->type->pm->runtime_idle; | 219 | callback = dev->type->pm->runtime_idle; |
220 | else if (dev->class && dev->class->pm) | 220 | else if (dev->class && dev->class->pm) |
@@ -374,8 +374,8 @@ static int rpm_suspend(struct device *dev, int rpmflags) | |||
374 | 374 | ||
375 | __update_runtime_status(dev, RPM_SUSPENDING); | 375 | __update_runtime_status(dev, RPM_SUSPENDING); |
376 | 376 | ||
377 | if (dev->pwr_domain) | 377 | if (dev->pm_domain) |
378 | callback = dev->pwr_domain->ops.runtime_suspend; | 378 | callback = dev->pm_domain->ops.runtime_suspend; |
379 | else if (dev->type && dev->type->pm) | 379 | else if (dev->type && dev->type->pm) |
380 | callback = dev->type->pm->runtime_suspend; | 380 | callback = dev->type->pm->runtime_suspend; |
381 | else if (dev->class && dev->class->pm) | 381 | else if (dev->class && dev->class->pm) |
@@ -573,8 +573,8 @@ static int rpm_resume(struct device *dev, int rpmflags) | |||
573 | 573 | ||
574 | __update_runtime_status(dev, RPM_RESUMING); | 574 | __update_runtime_status(dev, RPM_RESUMING); |
575 | 575 | ||
576 | if (dev->pwr_domain) | 576 | if (dev->pm_domain) |
577 | callback = dev->pwr_domain->ops.runtime_resume; | 577 | callback = dev->pm_domain->ops.runtime_resume; |
578 | else if (dev->type && dev->type->pm) | 578 | else if (dev->type && dev->type->pm) |
579 | callback = dev->type->pm->runtime_resume; | 579 | callback = dev->type->pm->runtime_resume; |
580 | else if (dev->class && dev->class->pm) | 580 | else if (dev->class && dev->class->pm) |