mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
369d561445
commit
cf57aa7c54
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue