powerpc/mpic: Fix mapping of "DCR" based MPIC variants
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 22 Jun 2009 16:47:59 +0000 (16:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jun 2009 04:37:22 +0000 (14:37 +1000)
commit5a2642f620eb6e40792822fa0eafe23046fbb55e
tree639c2697e07ca65c970837281239bcbb41f202e5
parent6f0b1c6094b3e8eeeb13f8f16c1b2ef452a6f519
powerpc/mpic: Fix mapping of "DCR" based MPIC variants

Commit 31207dab7d2e63795eb15823947bd2f7025b08e2
"Fix incorrect allocation of interrupt rev-map"
introduced a regression crashing on boot on machines using
a "DCR" based MPIC, such as the Cell blades.

The reason is that the irq host data structure is initialized
much later as a result of that patch, causing our calls to
mpic_map() do be done before we have a host setup.

Unfortunately, this breaks _mpic_map_dcr() which uses the
mpic->irqhost to get to the device node.

This fixes it by, instead, passing the device node explicitely
to mpic_map().

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Akira Tsukamoto <akirat@rd.scei.sony.co.jp>
arch/powerpc/sysdev/mpic.c