Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256951
b: refs/heads/master
c: d280540
h: refs/heads/master
i:
  256949: a2b615b
  256947: 694711b
  256943: ed319db
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jul 14, 2011
1 parent 348a478 commit d63078f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 0bc5b2debb832191a42baea7ff59d2ca6ce9f7d5
refs/heads/master: d28054020f97c7c9f15327a53945f0f40ffc5d7a
12 changes: 10 additions & 2 deletions trunk/drivers/base/power/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,16 @@ static int pm_genpd_poweroff(struct generic_pm_domain *genpd)
}
}

if (genpd->power_off)
genpd->power_off(genpd);
if (genpd->power_off) {
ret = genpd->power_off(genpd);
if (ret == -EBUSY) {
genpd_set_active(genpd);
if (parent)
genpd_release_lock(parent);

goto out;
}
}

genpd->status = GPD_STATE_POWER_OFF;

Expand Down

0 comments on commit d63078f

Please sign in to comment.