diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-12-09 00:33:12 +0100 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-12 01:00:41 +0100 |
commit | 2354eb5a943e64c5e6e249147381e9715aa5d54b (patch) | |
tree | 6341bf9adfb93f3a59a1476a7fc5254f24529bdd /arch/arm/mach-omap2/powerdomain.c | |
parent | OMAP clockdomain/powerdomain: optimize out sleepdep code on OMAP24xx (diff) | |
download | linux-2354eb5a943e64c5e6e249147381e9715aa5d54b.tar.xz linux-2354eb5a943e64c5e6e249147381e9715aa5d54b.zip |
OMAP powerdomain/PM: use symbolic constants for the max number of power states
Replace some bare constants with power states.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/powerdomain.c')
-rw-r--r-- | arch/arm/mach-omap2/powerdomain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 41472670e4b4..1dd1a3817e8b 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c @@ -158,7 +158,7 @@ static __init void _pwrdm_setup(struct powerdomain *pwrdm) { int i; - for (i = 0; i < 4; i++) + for (i = 0; i < PWRDM_MAX_PWRSTS; i++) pwrdm->state_counter[i] = 0; pwrdm_wait_transition(pwrdm); |