mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 09:02:10 +08:00
Correct the IRQ numbers passed to the request_threaded_irq
This commit is contained in:
parent
8cd1c6a322
commit
65397e2d53
|
@ -80,7 +80,7 @@ static int __init bottomhalf_init(void)
|
||||||
pr_info("Successfully requested BUTTON1 IRQ # %d\n", button_irqs[0]);
|
pr_info("Successfully requested BUTTON1 IRQ # %d\n", button_irqs[0]);
|
||||||
|
|
||||||
ret = request_threaded_irq(
|
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);
|
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "gpiomod#button1", NULL);
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
@ -100,7 +100,7 @@ static int __init bottomhalf_init(void)
|
||||||
pr_info("Successfully requested BUTTON2 IRQ # %d\n", button_irqs[1]);
|
pr_info("Successfully requested BUTTON2 IRQ # %d\n", button_irqs[1]);
|
||||||
|
|
||||||
ret = request_threaded_irq(
|
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);
|
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "gpiomod#button2", NULL);
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user