aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/twl6040.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c
index 6e88f25832fb..03dbff3597a2 100644
--- a/drivers/mfd/twl6040.c
+++ b/drivers/mfd/twl6040.c
@@ -679,6 +679,9 @@ static int twl6040_probe(struct i2c_client *client,
679 GPIOF_OUT_INIT_LOW, "audpwron"); 679 GPIOF_OUT_INIT_LOW, "audpwron");
680 if (ret) 680 if (ret)
681 goto gpio_err; 681 goto gpio_err;
682
683 /* Clear any pending interrupt */
684 twl6040_reg_read(twl6040, TWL6040_REG_INTID);
682 } 685 }
683 686
684 ret = regmap_add_irq_chip(twl6040->regmap, twl6040->irq, IRQF_ONESHOT, 687 ret = regmap_add_irq_chip(twl6040->regmap, twl6040->irq, IRQF_ONESHOT,