mfd: arizona: Disable all wake sources by default
authorMark Brown <[email protected]>
Thu, 17 Jan 2013 07:54:18 +0000 (16:54 +0900)
committerSamuel Ortiz <[email protected]>
Mon, 8 Apr 2013 13:20:56 +0000 (15:20 +0200)
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
drivers/mfd/arizona-irq.c

index 2bec5f0db3ee5e80733a88043d96b3219405d2f0..846262c590498423c6bcebe203219812048a85c1 100644 (file)
@@ -192,6 +192,9 @@ int arizona_irq_init(struct arizona *arizona)
                return -EINVAL;
        }
 
+       /* Disable all wake sources by default */
+       regmap_write(arizona->regmap, ARIZONA_WAKE_CONTROL, 0);
+
        if (arizona->pdata.irq_active_high) {
                ret = regmap_update_bits(arizona->regmap, ARIZONA_IRQ_CTRL_1,
                                         ARIZONA_IRQ_POL, 0);