Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[pandora-kernel.git] / arch / arm / mach-omap2 / cpuidle34xx.c
index 8ea012e..0d50b45 100644 (file)
 #include <plat/irqs.h>
 #include <plat/powerdomain.h>
 #include <plat/clockdomain.h>
-#include <plat/control.h>
 #include <plat/serial.h>
 
 #include "pm.h"
+#include "control.h"
 
 #ifdef CONFIG_CPU_IDLE
 
@@ -272,10 +272,8 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev,
         */
        per_next_state = per_saved_state = pwrdm_read_next_pwrst(per_pd);
        if ((per_next_state == PWRDM_POWER_OFF) &&
-           (core_next_state > PWRDM_POWER_RET)) {
+           (core_next_state > PWRDM_POWER_RET))
                per_next_state = PWRDM_POWER_RET;
-               pwrdm_set_next_pwrst(per_pd, per_next_state);
-       }
 
        /* Are we changing PER target state? */
        if (per_next_state != per_saved_state)