aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/pcf50633-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/pcf50633-core.c')
-rw-r--r--drivers/mfd/pcf50633-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c
index 53429154d7e..ec7a7727228 100644
--- a/drivers/mfd/pcf50633-core.c
+++ b/drivers/mfd/pcf50633-core.c
@@ -458,11 +458,12 @@ static int pcf50633_resume(struct device *dev)
pcf50633_write_block(pcf, PCF50633_REG_INT1M, 5,
pcf->suspend_irq_masks);
+ get_device(pcf->dev);
+
/* Clear any pending interrupts and set resume reason if any */
+ /* this will leave with enable_irq() */
pcf50633_irq_worker(&pcf->irq_work);
- enable_irq(pcf->irq);
-
return 0;
}
#else