[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1620909145-21744-1-git-send-email-tiantao6@hisilicon.com>
Date: Thu, 13 May 2021 20:32:25 +0800
From: Tian Tao <tiantao6@...ilicon.com>
To: <lee.jones@...aro.org>
CC: <linux-kernel@...r.kernel.org>, Tian Tao <tiantao6@...ilicon.com>
Subject: [PATCH] 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@...ilicon.com>
---
drivers/mfd/max8907.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c
index d44baaf..40e70ab 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);
--
2.7.4
Powered by blists - more mailing lists