aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-01-17 14:28:18 +0100
committerLars-Peter Clausen <lars@metafoo.de>2010-01-17 14:28:18 +0100
commit126f172b476592064ec3f8c345df4dad52df2495 (patch)
tree547983084da0a6dcbb537af85fc61932cc365681
parent5e5d518ecad86cc891d91c88d3b144eb30339bca (diff)
parent187c34f3f314201b8c0ddff1f6969069614fe8f8 (diff)
Merge branch 'glamo-2.6.32' into om-gta02-2.6.32
-rw-r--r--drivers/mfd/glamo/glamo-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
index e0e39409595..82a906a3cdc 100644
--- a/drivers/mfd/glamo/glamo-core.c
+++ b/drivers/mfd/glamo/glamo-core.c
@@ -1157,6 +1157,8 @@ static int glamo_suspend(struct device *dev)
spin_lock(&glamo->lock);
+ glamo->saved_irq_mask = __reg_read(glamo, GLAMO_REG_IRQ_ENABLE);
+
/* nuke interrupts */
__reg_write(glamo, GLAMO_REG_IRQ_ENABLE, 0x200);
@@ -1237,6 +1239,8 @@ static int glamo_resume(struct device *dev)
}
}
+ __reg_write(glamo, GLAMO_REG_IRQ_ENABLE, glamo->saved_irq_mask);
+
spin_unlock(&glamo->lock);
return 0;