mfd: ab8500-core wake up from suspend
authorMattias Wallin <mattias.wallin@stericsson.com>
Thu, 2 Dec 2010 14:10:27 +0000 (15:10 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Jan 2011 11:37:47 +0000 (12:37 +0100)
This patch makes the system wake up from suspend when an
ab8500 interrupt occur. This can for example be USB cable
insert or an RTC alarm.

Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c

index 2bd4437cf3314d1852234bcdaf58b1dc272a1c7b..e464e94c4bc01c98a0634f17eaa690128a09a7c9 100644 (file)
@@ -519,7 +519,8 @@ int __devinit ab8500_init(struct ab8500 *ab8500)
                        return ret;
 
                ret = request_threaded_irq(ab8500->irq, NULL, ab8500_irq,
-                                          IRQF_ONESHOT, "ab8500", ab8500);
+                                          IRQF_ONESHOT | IRQF_NO_SUSPEND,
+                                          "ab8500", ab8500);
                if (ret)
                        goto out_removeirq;
        }