[PATCH 1/5] glamo-core: only disable non-disabled engines on suspend

Thibaut Girka thib at sitedethib.com
Fri Jun 25 20:17:16 CEST 2010


---
 drivers/mfd/glamo-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/glamo-core.c b/drivers/mfd/glamo-core.c
index 93bfed3..8f02a81 100644
--- a/drivers/mfd/glamo-core.c
+++ b/drivers/mfd/glamo-core.c
@@ -1174,7 +1174,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);
 	}
 
-- 
1.7.1




More information about the openmoko-kernel mailing list