diff options
Diffstat (limited to 'arch/arm/mach-omap2/powerdomain.c')
-rw-r--r-- | arch/arm/mach-omap2/powerdomain.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 96114901b932..2f963f702a05 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c | |||
@@ -526,7 +526,8 @@ int pwrdm_read_next_pwrst(struct powerdomain *pwrdm) | |||
526 | * | 526 | * |
527 | * Return the powerdomain @pwrdm's current power state. Returns -EINVAL | 527 | * Return the powerdomain @pwrdm's current power state. Returns -EINVAL |
528 | * if the powerdomain pointer is null or returns the current power state | 528 | * if the powerdomain pointer is null or returns the current power state |
529 | * upon success. | 529 | * upon success. Note that if the power domain only supports the ON state |
530 | * then just return ON as the current state. | ||
530 | */ | 531 | */ |
531 | int pwrdm_read_pwrst(struct powerdomain *pwrdm) | 532 | int pwrdm_read_pwrst(struct powerdomain *pwrdm) |
532 | { | 533 | { |
@@ -535,6 +536,9 @@ int pwrdm_read_pwrst(struct powerdomain *pwrdm) | |||
535 | if (!pwrdm) | 536 | if (!pwrdm) |
536 | return -EINVAL; | 537 | return -EINVAL; |
537 | 538 | ||
539 | if (pwrdm->pwrsts == PWRSTS_ON) | ||
540 | return PWRDM_POWER_ON; | ||
541 | |||
538 | if (arch_pwrdm && arch_pwrdm->pwrdm_read_pwrst) | 542 | if (arch_pwrdm && arch_pwrdm->pwrdm_read_pwrst) |
539 | ret = arch_pwrdm->pwrdm_read_pwrst(pwrdm); | 543 | ret = arch_pwrdm->pwrdm_read_pwrst(pwrdm); |
540 | 544 | ||