Skip to content

Commit 65397e2

Browse files
0xff07jserv
authored andcommitted
Correct the IRQ numbers passed to the request_threaded_irq
1 parent 8cd1c6a commit 65397e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/bh_threaded.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static int __init bottomhalf_init(void)
8080
pr_info("Successfully requested BUTTON1 IRQ # %d\n", button_irqs[0]);
8181

8282
ret = request_threaded_irq(
83-
gpio_to_irq(button_irqs[0]), button_top_half, button_bottom_half,
83+
button_irqs[0], button_top_half, button_bottom_half,
8484
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "gpiomod#button1", NULL);
8585

8686
if (ret) {
@@ -100,7 +100,7 @@ static int __init bottomhalf_init(void)
100100
pr_info("Successfully requested BUTTON2 IRQ # %d\n", button_irqs[1]);
101101

102102
ret = request_threaded_irq(
103-
gpio_to_irq(button_irqs[1]), button_top_half, button_bottom_half,
103+
button_irqs[1], button_top_half, button_bottom_half,
104104
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "gpiomod#button2", NULL);
105105

106106
if (ret) {

0 commit comments

Comments
 (0)