diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2010-12-23 03:53:36 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-14 06:38:14 -0500 |
commit | cdd137c9c86c201ddb7f42ec978d2da45e7b7a17 (patch) | |
tree | 1fe9850f283a3952b139d2fc113759fbb4fed88c /drivers/mfd/max8998-irq.c | |
parent | 6680d940b80dbb0617226c5b76b071a3977feb1c (diff) |
mfd: MAX8998/LP3974 hibernation support
This patch makes the driver to save and restore register values
for hibernation.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/max8998-irq.c')
-rw-r--r-- | drivers/mfd/max8998-irq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mfd/max8998-irq.c b/drivers/mfd/max8998-irq.c index c6b61fcc5808..3903e1fbb334 100644 --- a/drivers/mfd/max8998-irq.c +++ b/drivers/mfd/max8998-irq.c | |||
@@ -183,6 +183,13 @@ static irqreturn_t max8998_irq_thread(int irq, void *data) | |||
183 | return IRQ_HANDLED; | 183 | return IRQ_HANDLED; |
184 | } | 184 | } |
185 | 185 | ||
186 | int max8998_irq_resume(struct max8998_dev *max8998) | ||
187 | { | ||
188 | if (max8998->irq && max8998->irq_base) | ||
189 | max8998_irq_thread(max8998->irq_base, max8998); | ||
190 | return 0; | ||
191 | } | ||
192 | |||
186 | int max8998_irq_init(struct max8998_dev *max8998) | 193 | int max8998_irq_init(struct max8998_dev *max8998) |
187 | { | 194 | { |
188 | int i; | 195 | int i; |