Skip to content

Commit

Permalink
OMAP powerdomain/PM: use symbolic constants for the max number of pow…
Browse files Browse the repository at this point in the history
…er states

Replace some bare constants with symbolic constants.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
  • Loading branch information
Paul Walmsley committed Jan 27, 2010
1 parent 369d561 commit cf57aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/powerdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cf57aa7

Please sign in to comment.