diff options
author | Olof Johansson <olof@lixom.net> | 2012-03-08 09:33:44 -0800 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-03-08 09:33:44 -0800 |
commit | 990b07d952bff7116ba79e3c4ceeae5dd8d5ec3d (patch) | |
tree | b0f6c896749f5beca20d74e72e4761aaa9e8ad2b /arch/arm/mach-omap2/cpuidle44xx.c | |
parent | 3a70b7e05f62d4e1bfd5744368ea1fd855b6e03c (diff) | |
parent | 8a16a701ad787b6db2949766341c5ad1b551de9f (diff) | |
download | linux-990b07d952bff7116ba79e3c4ceeae5dd8d5ec3d.tar.gz linux-990b07d952bff7116ba79e3c4ceeae5dd8d5ec3d.tar.bz2 linux-990b07d952bff7116ba79e3c4ceeae5dd8d5ec3d.zip |
Merge branch 'regulator' of git://github.com/hzhuang1/linux into next/drivers
* 'regulator' of git://github.com/hzhuang1/linux: (2 commits)
regulator: Remove bq24022 regulator driver
pxa: magician/hx4700: Convert to gpio-regulator from bq24022
(plus update to v3.3-rc6)
Diffstat (limited to 'arch/arm/mach-omap2/cpuidle44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/cpuidle44xx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c index cfdbb86bc84e..72e018b9b260 100644 --- a/arch/arm/mach-omap2/cpuidle44xx.c +++ b/arch/arm/mach-omap2/cpuidle44xx.c @@ -65,7 +65,6 @@ static int omap4_enter_idle(struct cpuidle_device *dev, struct timespec ts_preidle, ts_postidle, ts_idle; u32 cpu1_state; int idle_time; - int new_state_idx; int cpu_id = smp_processor_id(); /* Used to keep track of the total time in idle */ @@ -84,8 +83,8 @@ static int omap4_enter_idle(struct cpuidle_device *dev, */ cpu1_state = pwrdm_read_pwrst(cpu1_pd); if (cpu1_state != PWRDM_POWER_OFF) { - new_state_idx = drv->safe_state_index; - cx = cpuidle_get_statedata(&dev->states_usage[new_state_idx]); + index = drv->safe_state_index; + cx = cpuidle_get_statedata(&dev->states_usage[index]); } if (index > 0) |