Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245365
b: refs/heads/master
c: 8b313a3
h: refs/heads/master
i:
  245363: 01187e0
v: v3
  • Loading branch information
Rafael J. Wysocki committed Apr 28, 2011
1 parent d9ae5fd commit 208b250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38ade3a1fa0421c12627c7b48c33e89414fc9b76
refs/heads/master: 8b313a38ecffc0ff0b4c5115f0a461f73b7dfdb6
31 changes: 3 additions & 28 deletions trunk/drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,35 +900,10 @@ int platform_pm_restore_noirq(struct device *dev)

#endif /* CONFIG_HIBERNATE_CALLBACKS */

#ifdef CONFIG_PM_RUNTIME

int __weak platform_pm_runtime_suspend(struct device *dev)
{
return pm_generic_runtime_suspend(dev);
};

int __weak platform_pm_runtime_resume(struct device *dev)
{
return pm_generic_runtime_resume(dev);
};

int __weak platform_pm_runtime_idle(struct device *dev)
{
return pm_generic_runtime_idle(dev);
};

#else /* !CONFIG_PM_RUNTIME */

#define platform_pm_runtime_suspend NULL
#define platform_pm_runtime_resume NULL
#define platform_pm_runtime_idle NULL

#endif /* !CONFIG_PM_RUNTIME */

static const struct dev_pm_ops platform_dev_pm_ops = {
.runtime_suspend = platform_pm_runtime_suspend,
.runtime_resume = platform_pm_runtime_resume,
.runtime_idle = platform_pm_runtime_idle,
.runtime_suspend = pm_generic_runtime_suspend,
.runtime_resume = pm_generic_runtime_resume,
.runtime_idle = pm_generic_runtime_idle,
USE_PLATFORM_PM_SLEEP_OPS
};

Expand Down

0 comments on commit 208b250

Please sign in to comment.