summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/powerdomain.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-01-27 04:13:01 +0100
committerPaul Walmsley <paul@pwsan.com>2010-01-27 04:13:01 +0100
commitcf57aa7c5453e786acd37edea8acdd9497c708d6 (patch)
treea9960a91dbb666076439ad60fff0a864b00d210c /arch/arm/mach-omap2/powerdomain.c
parentOMAP clockdomains: add usecounting for wakeup and sleep dependencies (diff)
downloadlinux-cf57aa7c5453e786acd37edea8acdd9497c708d6.tar.xz
linux-cf57aa7c5453e786acd37edea8acdd9497c708d6.zip
OMAP powerdomain/PM: use symbolic constants for the max number of power states
Replace some bare constants with symbolic constants. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c
index 411361f97eda..df6446a9c353 100644
--- a/arch/arm/mach-omap2/powerdomain.c
+++ b/arch/arm/mach-omap2/powerdomain.c
@@ -122,7 +122,7 @@ static int _pwrdm_register(struct powerdomain *pwrdm)
list_add(&pwrdm->node, &pwrdm_list);
/* Initialize the powerdomain's state counter */
- for (i = 0; i < 4; i++)
+ for (i = 0; i < PWRDM_MAX_PWRSTS; i++)
pwrdm->state_counter[i] = 0;
pwrdm_wait_transition(pwrdm);