summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ibmebus.c
diff options
context:
space:
mode:
authorSebastien Dugue <sebastien.dugue@bull.net>2008-11-27 01:19:18 +0000
committerPaul Mackerras <paulus@samba.org>2008-12-03 20:46:36 +1100
commit6358d6cb328a772eb6f02c870da61709d539480f (patch)
treed9cf83f298f36d54b12b80af5d59e541d66eaefc /arch/powerpc/kernel/ibmebus.c
parent786b32f892dc341b607445bdef29d8e41a840925 (diff)
downloadop-kernel-dev-6358d6cb328a772eb6f02c870da61709d539480f.zip
op-kernel-dev-6358d6cb328a772eb6f02c870da61709d539480f.tar.gz
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 64299d2..7c65377 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);
OpenPOWER on IntegriCloud