Skip to content

Commit

Permalink
[PATCH] genirq: fix irq flow handler uninstall
Browse files Browse the repository at this point in the history
The sanity check for no_irq_chip in __set_irq_hander() is unconditional on
both install and uninstall of an handler.  This triggers false warnings and
replaces no_irq_chip by dummy_irq_chip in the uninstall case.

Check only, when a real handler is installed.

Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Acked-by: Sylvain Munaut <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
KAGA-KOKO authored and Linus Torvalds committed Dec 22, 2006
1 parent e903387 commit 9d7ac8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/irq/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,7 @@ __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,

if (!handle)
handle = handle_bad_irq;

if (desc->chip == &no_irq_chip) {
else if (desc->chip == &no_irq_chip) {
printk(KERN_WARNING "Trying to install %sinterrupt handler "
"for IRQ%d\n", is_chained ? "chained " : "", irq);
/*
Expand Down

0 comments on commit 9d7ac8b

Please sign in to comment.