Commit 6ce51c43 authored by Luis Henriques's avatar Luis Henriques Committed by Ingo Molnar
Browse files

genirq: do not execute DEBUG_SHIRQ when irq setup failed

When requesting an IRQ, the DEBUG_SHIRQ code executes a fake IRQ just to make
sure the driver is ready to receive an IRQ immediately.  The problem was that
this fake IRQ was being executed even if interrupt line failed to be allocated
by __setup_irq.
Signed-off-by: default avatarLuis Henriques <>
LKML-Reference: <>
Signed-off-by: default avatarThomas Gleixner <>
[ fixed bug pointed out by a warning reported by Stephen Rothwell ]
Cc: Stephen Rothwell <>
Signed-off-by: default avatarIngo Molnar <>
parent 833bb304
......@@ -768,7 +768,7 @@ int request_irq(unsigned int irq, irq_handler_t handler,
if (irqflags & IRQF_SHARED) {
if (!retval && (irqflags & IRQF_SHARED)) {
* It's a shared IRQ -- the driver ought to be prepared for it
* to happen immediately, so let's make sure....
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment