Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313385
b: refs/heads/master
c: d49cae9
h: refs/heads/master
i:
  313383: 5f4683c
v: v3
  • Loading branch information
Jon Hunter authored and Paul Walmsley committed Jul 4, 2012
1 parent 3537225 commit 8211783
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 65aa94b204dcecca01521e2a4a57e44892632b47
refs/heads/master: d49cae924faeffe8fb6b50493ec1655731d8dbd0
6 changes: 5 additions & 1 deletion trunk/arch/arm/mach-omap2/powerdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ int pwrdm_read_next_pwrst(struct powerdomain *pwrdm)
*
* Return the powerdomain @pwrdm's current power state. Returns -EINVAL
* if the powerdomain pointer is null or returns the current power state
* upon success.
* upon success. Note that if the power domain only supports the ON state
* then just return ON as the current state.
*/
int pwrdm_read_pwrst(struct powerdomain *pwrdm)
{
Expand All @@ -535,6 +536,9 @@ int pwrdm_read_pwrst(struct powerdomain *pwrdm)
if (!pwrdm)
return -EINVAL;

if (pwrdm->pwrsts == PWRSTS_ON)
return PWRDM_POWER_ON;

if (arch_pwrdm && arch_pwrdm->pwrdm_read_pwrst)
ret = arch_pwrdm->pwrdm_read_pwrst(pwrdm);

Expand Down

0 comments on commit 8211783

Please sign in to comment.