Skip to content

Commit

Permalink
lkl: reset irq handler on lkl_get_free_irq
Browse files Browse the repository at this point in the history
irq users may use custom handlers, so reset it when freeing the irq.

Signed-off-by: Michael Zimmermann <[email protected]>
  • Loading branch information
M1cha committed Jul 10, 2017
1 parent 0d91d10 commit 73637e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/lkl/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ int lkl_get_free_irq(const char *user)
for (i = 1; i < NR_IRQS; i++) {
if (!irqs[i].user) {
irqs[i].user = user;
irq_set_chip_and_handler(i, &dummy_irq_chip, handle_simple_irq);
ret = i;
break;
}
Expand Down

0 comments on commit 73637e7

Please sign in to comment.