Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59104
b: refs/heads/master
c: 1c3f7d1
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Greg Kroah-Hartman committed Jul 11, 2007
1 parent e33a4e4 commit e2e1037
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 515c53576299e32d6bdb6295cfa2fe1307516eb4
refs/heads/master: 1c3f7d1c79425dd8f627b8da139fd1855f096b6e
11 changes: 4 additions & 7 deletions trunk/drivers/base/power/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,19 @@ int suspend_device(struct device * dev, pm_message_t state)
dev->parent->power.power_state.event);
}

if (dev->class && dev->class->suspend && !dev->power.power_state.event) {
if (dev->class && dev->class->suspend) {
suspend_device_dbg(dev, state, "class ");
error = dev->class->suspend(dev, state);
suspend_report_result(dev->class->suspend, error);
}

if (!error && dev->type && dev->type->suspend
&& !dev->power.power_state.event) {
if (!error && dev->type && dev->type->suspend) {
suspend_device_dbg(dev, state, "type ");
error = dev->type->suspend(dev, state);
suspend_report_result(dev->type->suspend, error);
}

if (!error && dev->bus && dev->bus->suspend
&& !dev->power.power_state.event) {
if (!error && dev->bus && dev->bus->suspend) {
suspend_device_dbg(dev, state, "");
error = dev->bus->suspend(dev, state);
suspend_report_result(dev->bus->suspend, error);
Expand All @@ -104,8 +102,7 @@ static int suspend_device_late(struct device *dev, pm_message_t state)
{
int error = 0;

if (dev->bus && dev->bus->suspend_late
&& !dev->power.power_state.event) {
if (dev->bus && dev->bus->suspend_late) {
suspend_device_dbg(dev, state, "LATE ");
error = dev->bus->suspend_late(dev, state);
suspend_report_result(dev->bus->suspend_late, error);
Expand Down

0 comments on commit e2e1037

Please sign in to comment.