aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-cpcap.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2017-03-26 20:34:23 -0700
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-04-14 12:08:52 +0200
commit03a32da5ca63d418ab95063b06687e00a6df9855 (patch)
treef6f324d053b6e59feb5a2cafa59f35ea8e06a851 /drivers/rtc/rtc-cpcap.c
parentrtc: cmos: Do not assume irq 8 for rtc when there are no legacy irqs (diff)
downloadlinux-dev-03a32da5ca63d418ab95063b06687e00a6df9855.tar.xz
linux-dev-03a32da5ca63d418ab95063b06687e00a6df9855.zip
rtc: cpcap: fix improper use of IRQ_NONE for request_threaded_irq
There's a funny typo where IRQ_NONE is used instead of IRQF_TRIGGER_NONE for request_threaded_irq(). Let's fix it before it gets copied elsewhere. Fixes: dd3bf50b35e3 ("rtc: cpcap: new rtc driver") Signed-off-by: Tony Lindgren <tony@atomide.com> Reviewed-By: Sebastian Reichel <sre@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-cpcap.c')
-rw-r--r--drivers/rtc/rtc-cpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-cpcap.c b/drivers/rtc/rtc-cpcap.c
index 5d163be98e9f..3a0333e1f21a 100644
--- a/drivers/rtc/rtc-cpcap.c
+++ b/drivers/rtc/rtc-cpcap.c
@@ -275,7 +275,7 @@ static int cpcap_rtc_probe(struct platform_device *pdev)
rtc->alarm_irq = platform_get_irq(pdev, 0);
err = devm_request_threaded_irq(dev, rtc->alarm_irq, NULL,
- cpcap_rtc_alarm_irq, IRQ_NONE,
+ cpcap_rtc_alarm_irq, IRQF_TRIGGER_NONE,
"rtc_alarm", rtc);
if (err) {
dev_err(dev, "Could not request alarm irq: %d\n", err);
@@ -291,7 +291,7 @@ static int cpcap_rtc_probe(struct platform_device *pdev)
*/
rtc->update_irq = platform_get_irq(pdev, 1);
err = devm_request_threaded_irq(dev, rtc->update_irq, NULL,
- cpcap_rtc_update_irq, IRQ_NONE,
+ cpcap_rtc_update_irq, IRQF_TRIGGER_NONE,
"rtc_1hz", rtc);
if (err) {
dev_err(dev, "Could not request update irq: %d\n", err);