summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ibmebus.c
diff options
context:
space:
mode:
authorSebastien Dugue <sebastien.dugue@bull.net>2008-11-27 02:19:18 +0100
committerPaul Mackerras <paulus@samba.org>2008-12-03 10:46:36 +0100
commit6358d6cb328a772eb6f02c870da61709d539480f (patch)
treed9cf83f298f36d54b12b80af5d59e541d66eaefc /arch/powerpc/kernel/ibmebus.c
parentpowerpc: Eliminate NULL test and memset after alloc_bootmem (diff)
downloadlinux-6358d6cb328a772eb6f02c870da61709d539480f.tar.xz
linux-6358d6cb328a772eb6f02c870da61709d539480f.zip
powerpc/ibmebus: Get rid of the IRQ mapping in ibmebus_free_irq()
ibmebus_free_irq() frees the IRQ but does not remove its mapping, which results in stale entries in the map. This fixes it by adding a call to irq_dispose_mapping() in ibmebus_free_irq(). Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/ibmebus.c')
-rw-r--r--arch/powerpc/kernel/ibmebus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c
index 64299d28f364..7c6537777b2c 100644
--- a/arch/powerpc/kernel/ibmebus.c
+++ b/arch/powerpc/kernel/ibmebus.c
@@ -231,6 +231,7 @@ void ibmebus_free_irq(u32 ist, void *dev_id)
unsigned int irq = irq_find_mapping(NULL, ist);
free_irq(irq, dev_id);
+ irq_dispose_mapping(irq);
}
EXPORT_SYMBOL(ibmebus_free_irq);