]> git.karo-electronics.de Git - linux-beck.git/commitdiff
genirq: export handle_edge_irq() and irq_to_desc()
authorJiri Kosina <jkosina@suse.cz>
Sun, 13 May 2012 10:13:15 +0000 (12:13 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 May 2012 15:10:07 +0000 (08:10 -0700)
Export handle_edge_irq() and irq_to_desc() to modules to allow them to
do things such as

__irq_set_handler_locked(...., handle_edge_irq);

This fixes

ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined!
ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined!

when gpio-pch is being built as a module.

This was introduced by commit df9541a60af0 ("gpio: pch9: Use proper flow
type handlers") that added

__irq_set_handler_locked(d->irq, handle_edge_irq);

but handle_edge_irq() was not exported for modules (and inlined
__irq_set_handler_locked() requires irq_to_desc() exported as well)

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/irq/chip.c
kernel/irq/irqdesc.c

index 6080f6bc8c33f452782c1d259bb14fb778b345c5..3914c1e03cfffb2bf5a3ed016ffcb7bf051c92d4 100644 (file)
@@ -518,6 +518,7 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc)
 out_unlock:
        raw_spin_unlock(&desc->lock);
 }
+EXPORT_SYMBOL(handle_edge_irq);
 
 #ifdef CONFIG_IRQ_EDGE_EOI_HANDLER
 /**
index d86e254b95eb06123a57da2349b320871faa4f8a..192a302d6cfd34d23d61294fed068fbc60adc858 100644 (file)
@@ -112,6 +112,7 @@ struct irq_desc *irq_to_desc(unsigned int irq)
 {
        return radix_tree_lookup(&irq_desc_tree, irq);
 }
+EXPORT_SYMBOL(irq_to_desc);
 
 static void delete_irq_desc(unsigned int irq)
 {