Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177378
b: refs/heads/master
c: 33c3374
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Dec 15, 2009
1 parent 6f8a56e commit 005beab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: f2511774863487e61b56a97da07ebf8dd61d7836
refs/heads/master: 33c3374031facf7599c30a1548dfa4c83da87da3
12 changes: 3 additions & 9 deletions trunk/drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,11 @@ static int device_resume_noirq(struct device *dev, pm_message_t state)
TRACE_DEVICE(dev);
TRACE_RESUME(0);

if (!dev->bus)
goto End;

if (dev->bus->pm) {
if (dev->bus && dev->bus->pm) {
pm_dev_dbg(dev, state, "EARLY ");
error = pm_noirq_op(dev, dev->bus->pm, state);
}
End:

TRACE_RESUME(error);
return error;
}
Expand Down Expand Up @@ -615,10 +612,7 @@ static int device_suspend_noirq(struct device *dev, pm_message_t state)
{
int error = 0;

if (!dev->bus)
return 0;

if (dev->bus->pm) {
if (dev->bus && dev->bus->pm) {
pm_dev_dbg(dev, state, "LATE ");
error = pm_noirq_op(dev, dev->bus->pm, state);
}
Expand Down

0 comments on commit 005beab

Please sign in to comment.