summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Lee <rob.lee@linaro.org>2012-04-16 18:37:48 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-18 11:52:24 +0200
commit4659b7f1fa3eb33a8f9a9dd209a5823602dc6dcf (patch)
treea5062c47d599226cd11546a924328b3a09b422e4
parentde1de1594faac901670356e09c8c42b73e35ebbf (diff)
downloadtalos-obmc-linux-4659b7f1fa3eb33a8f9a9dd209a5823602dc6dcf.tar.gz
talos-obmc-linux-4659b7f1fa3eb33a8f9a9dd209a5823602dc6dcf.zip
ARM: imx: Fix imx5 idle logic bug
The imx5_idle() check of the tzic_eanble_wake() return value uses incorrect (inverted) logic causing all attempt to idle to fail. Signed-off-by: Robert Lee <rob.lee@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-imx/mm-imx5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c
index 05250aed61fb..e10f3914fcfe 100644
--- a/arch/arm/mach-imx/mm-imx5.c
+++ b/arch/arm/mach-imx/mm-imx5.c
@@ -35,7 +35,7 @@ static void imx5_idle(void)
}
clk_enable(gpc_dvfs_clk);
mx5_cpu_lp_set(WAIT_UNCLOCKED_POWER_OFF);
- if (tzic_enable_wake() != 0)
+ if (!tzic_enable_wake())
cpu_do_idle();
clk_disable(gpc_dvfs_clk);
}
OpenPOWER on IntegriCloud