aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2010-06-25 20:17:16 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-07-03 19:00:37 +0200
commit8335be6be5033ca548bd0231b3d0c5db392e5bec (patch)
tree4b6392da83d37bb3ae349759d8cf69502b1cfe70
parentc42fae0d24de8e7590a0b36e66eb6bc3b3e773c7 (diff)
glamo-core: only disable non-disabled engines on suspend
-rw-r--r--drivers/mfd/glamo-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/glamo-core.c b/drivers/mfd/glamo-core.c
index 135856af1ee..af50b82981a 100644
--- a/drivers/mfd/glamo-core.c
+++ b/drivers/mfd/glamo-core.c
@@ -1163,7 +1163,7 @@ static int glamo_suspend(struct device *dev)
/* take down each engine before we kill mem and pll */
for (n = 0; n < __NUM_GLAMO_ENGINES; n++) {
- if (glamo->engine_state != GLAMO_ENGINE_DISABLED)
+ if (glamo->engine_state[n] != GLAMO_ENGINE_DISABLED)
__glamo_engine_disable(glamo, n);
}