]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa8de7d035a1034143c503ad8a58958388b7f240
tree9727439d23b9308b6c26710db3aadf0406b1998b
parent5c9f1bba4523c11eae6afb4e3fd577d401dd6a36
genirq: export handle_edge_irq() and irq_to_desc()

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 76a79207cb6d ("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