rtc: tps6586x: Use IRQ_NOAUTOEN flag

The IRQ_NOAUTOEN flag tells interrupt core that interrupt shall not be
auto-enabled at the time of requesting interrupt. This is a minor clean-up
change that doesn't fix any problems.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200106015615.12602-1-digetx@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
Dmitry Osipenko 2020-01-06 04:56:15 +03:00 коммит произвёл Alexandre Belloni
Родитель 3c7b90cb14
Коммит 4c4ab451ae
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -23,6 +23,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/irq.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/mfd/tps6586x.h> #include <linux/mfd/tps6586x.h>
#include <linux/module.h> #include <linux/module.h>
@ -267,6 +268,8 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
rtc->rtc->start_secs = mktime64(2009, 1, 1, 0, 0, 0); rtc->rtc->start_secs = mktime64(2009, 1, 1, 0, 0, 0);
rtc->rtc->set_start_time = true; rtc->rtc->set_start_time = true;
irq_set_status_flags(rtc->irq, IRQ_NOAUTOEN);
ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL, ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,
tps6586x_rtc_irq, tps6586x_rtc_irq,
IRQF_ONESHOT, IRQF_ONESHOT,
@ -276,7 +279,6 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
rtc->irq, ret); rtc->irq, ret);
goto fail_rtc_register; goto fail_rtc_register;
} }
disable_irq(rtc->irq);
ret = rtc_register_device(rtc->rtc); ret = rtc_register_device(rtc->rtc);
if (ret) if (ret)