diff options
| author | Tian Tao <tiantao6@hisilicon.com> | 2021-03-15 20:51:14 +0800 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-04-17 00:55:07 +0200 |
| commit | 44db35cb9bf31163d17bee2c9748e1570b81be26 (patch) | |
| tree | a1d6e6a3dd4a4f717b903891f2f7765f59be4c18 | |
| parent | 880f25d690150937e42a2e8b86c111aae8da6d08 (diff) | |
| download | linux-44db35cb9bf31163d17bee2c9748e1570b81be26.tar.gz | |
rtc: tps6586x: move to use request_irq by IRQF_NO_AUTOEN flag
request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable
because of requesting.
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1615812674-62449-1-git-send-email-tiantao6@hisilicon.com
| -rw-r--r-- | drivers/rtc/rtc-tps6586x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c index a980337c30658..0eb9a0d06862c 100644 --- a/drivers/rtc/rtc-tps6586x.c +++ b/drivers/rtc/rtc-tps6586x.c @@ -268,11 +268,9 @@ static int tps6586x_rtc_probe(struct platform_device *pdev) rtc->rtc->start_secs = mktime64(2009, 1, 1, 0, 0, 0); rtc->rtc->set_start_time = true; - irq_set_status_flags(rtc->irq, IRQ_NOAUTOEN); - ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL, tps6586x_rtc_irq, - IRQF_ONESHOT, + IRQF_ONESHOT | IRQF_NO_AUTOEN, dev_name(&pdev->dev), rtc); if (ret < 0) { dev_err(&pdev->dev, "request IRQ(%d) failed with ret %d\n", |
