rtc: cpcap: fix improper use of IRQ_NONE for request_threaded_irq
PATCH 1/1 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")
Cc Sebastian Reichel <[email protected]>
Signed-off-by Tony Lindgren <[email protected]>
--- drivers/rtc/rtc-cpcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/rtc/rtc-cpcap.c +2 -2
@@ -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);
Signature · 11 lines
2.12.1 -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Hi,
Quoted 6 lines · Tony Lindgren
There's a funny typo where
IRQ_NONEis used instead ofIRQF_TRIGGER_NONEforrequest_threaded_irq(). Let's fix it before it gets copied elsewhere.Fixes dd3bf50b35e3 ("rtc: cpcap: new rtc driver")Cc Sebastian Reichel <[email protected]>Signed-off-by Tony Lindgren <[email protected]>
Reviewed-by Sebastian Reichel <[email protected]>
-- Sebastian
Quoted 27 lines
--- drivers/rtc/rtc-cpcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/rtc/rtc-cpcap.c +2
-2@@ -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);Signature · 1 line
2.12.1
Signature · 8 lines
You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Alexandre Belloni
Applieddrivers/rtc/rtc-cpcap.c
Quoted 11 lines · Tony Lindgren
There's a funny typo where
IRQ_NONEis used instead ofIRQF_TRIGGER_NONEforrequest_threaded_irq(). Let's fix it before it gets copied elsewhere.Fixes dd3bf50b35e3 ("rtc: cpcap: new rtc driver")Cc Sebastian Reichel <[email protected]>Signed-off-by Tony Lindgren <[email protected]>--- drivers/rtc/rtc-cpcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/rtc/rtc-cpcap.c +0
-0
Applied, thanks.
Signature · 13 lines
Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.