---
 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


Reply via email to