From: Paul Walmsley <paul@pwsan.com>
Date: Wed, 27 Jan 2010 03:13:01 +0000 (-0700)
Subject: OMAP powerdomain/PM: use symbolic constants for the max number of power states
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf57aa7c5453e786acd37edea8acdd9497c708d6;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git

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>
---

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);