From 65397e2d5388d71c150bb6db1a80de429fca4c15 Mon Sep 17 00:00:00 2001 From: Yo-Jung Lin <0xff07@gmail.com> Date: Fri, 19 Apr 2024 23:51:00 +0800 Subject: [PATCH] Correct the IRQ numbers passed to the request_threaded_irq --- examples/bh_threaded.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bh_threaded.c b/examples/bh_threaded.c index 8c00236..d7f8501 100644 --- a/examples/bh_threaded.c +++ b/examples/bh_threaded.c @@ -80,7 +80,7 @@ static int __init bottomhalf_init(void) pr_info("Successfully requested BUTTON1 IRQ # %d\n", button_irqs[0]); ret = request_threaded_irq( - gpio_to_irq(button_irqs[0]), button_top_half, button_bottom_half, + button_irqs[0], button_top_half, button_bottom_half, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "gpiomod#button1", NULL); if (ret) { @@ -100,7 +100,7 @@ static int __init bottomhalf_init(void) pr_info("Successfully requested BUTTON2 IRQ # %d\n", button_irqs[1]); ret = request_threaded_irq( - gpio_to_irq(button_irqs[1]), button_top_half, button_bottom_half, + button_irqs[1], button_top_half, button_bottom_half, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "gpiomod#button2", NULL); if (ret) {