From 8335be6be5033ca548bd0231b3d0c5db392e5bec Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Fri, 25 Jun 2010 20:17:16 +0200 Subject: glamo-core: only disable non-disabled engines on suspend --- drivers/mfd/glamo-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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); } -- cgit v1.2.3