mfd: arizona: Disable all wake sources by default
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 Jan 2013 07:54:18 +0000 (16:54 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Apr 2013 13:20:56 +0000 (15:20 +0200)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/arizona-irq.c

index 2bec5f0..846262c 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);