Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/bh_threaded.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static int __init bottomhalf_init(void)
/* cleanup what has been setup so far */
#ifdef NO_GPIO_REQUEST_ARRAY
fail4:
free_irq(button_irqs[0], NULL);
free_irq(button_irqs[0], &buttons[0]);

fail3:
gpio_free(buttons[1].gpio);
Expand All @@ -168,7 +168,7 @@ static int __init bottomhalf_init(void)
gpio_free(leds[0].gpio);
#else
fail3:
free_irq(button_irqs[0], NULL);
free_irq(button_irqs[0], &buttons[0]);

fail2:
gpio_free_array(buttons, ARRAY_SIZE(leds));
Expand All @@ -185,8 +185,8 @@ static void __exit bottomhalf_exit(void)
pr_info("%s\n", __func__);

/* free irqs */
free_irq(button_irqs[0], NULL);
free_irq(button_irqs[1], NULL);
free_irq(button_irqs[0], &buttons[0]);
free_irq(button_irqs[1], &buttons[1]);

/* turn all LEDs off */
#ifdef NO_GPIO_REQUEST_ARRAY
Expand Down