[POWERPC] Simplify xics direct/lpar irq_host setup
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 1 Apr 2008 06:42:27 +0000 (17:42 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 18 Apr 2008 05:36:11 +0000 (15:36 +1000)
commit1af9fa8994a049359c2bb9093a2f33775e28e7ea
tree3c04bf7471c135e2df94a15c02169b7c41078563
parentf01567d6d5688f8f613cd23da31aaf02d9538525
[POWERPC] Simplify xics direct/lpar irq_host setup

The xics code currently has a direct and lpar variant of
xics_host_map, the only difference being which irq_chip they use.  If
we remember which irq_chip we're using we can combine these two
routines.  That also allows us to have a single irq_host_ops instead
of two.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/xics.c