summaryrefslogtreecommitdiff
path: root/drivers/mfd/max8907.c
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-05-13 20:32:25 +0800
committerLee Jones <lee.jones@linaro.org>2021-06-02 10:50:00 +0100
commitbd8a0974430638f2c79cb411303d176230c89e6e (patch)
treec5c281e0184ad2cf2ed7cb7916356f14e5b1be82 /drivers/mfd/max8907.c
parent80cf16de33a29b45a0bbfd74b0cf65fdb458f7bf (diff)
mfd: max8907: Move to use request_irq by IRQF_NO_AUTOEN flag
This change is just to simplify the code, no actual functional changes. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max8907.c')
-rw-r--r--drivers/mfd/max8907.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c
index d44baafd9d14..40e70ab88956 100644
--- a/drivers/mfd/max8907.c
+++ b/drivers/mfd/max8907.c
@@ -228,11 +228,9 @@ static int max8907_i2c_probe(struct i2c_client *i2c,
goto err_regmap_rtc;
}
- irq_set_status_flags(max8907->i2c_gen->irq, IRQ_NOAUTOEN);
-
ret = regmap_add_irq_chip(max8907->regmap_gen, max8907->i2c_gen->irq,
- IRQF_ONESHOT | IRQF_SHARED, -1,
- &max8907_chg_irq_chip,
+ IRQF_ONESHOT | IRQF_SHARED | IRQF_NO_AUTOEN,
+ -1, &max8907_chg_irq_chip,
&max8907->irqc_chg);
if (ret != 0) {
dev_err(&i2c->dev, "failed to add chg irq chip: %d\n", ret);