powerpc/irq: Always free duplicate IRQ_LEGACY hosts
authorMilton Miller <miltonm@bga.com>
Tue, 24 May 2011 20:34:17 +0000 (20:34 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 26 May 2011 03:38:59 +0000 (13:38 +1000)
commit3d1b5e206a4f0ce46f2aa138590738c5d8e118ac
tree23e10e1c4d3a89bdb6c870998e3b4843358e75b8
parent8142f032a90680ed2fb080ca694ffe9509276361
powerpc/irq: Always free duplicate IRQ_LEGACY hosts

Since kmem caches are allocated before init_IRQ as noted in 3af259d155
(powerpc: Radix trees are available before init_IRQ), we now call
kmalloc in all cases and can can always call kfree if we are asked
to allocate a duplicate or conflicting IRQ_HOST_MAP_LEGACY host.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/irq.c