[POWERPC] Add an optional device_node pointer to the irq_host
The majority of irq_host implementations (3 out of 4) are associated with a device_node, and need to stash it somewhere. Rather than having it somewhere different for each host, add an optional device_node pointer to the irq_host structure. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
0ae0b54565
commit
52964f87c6
@@ -540,7 +540,7 @@ static void __init xics_init_host(void)
|
||||
ops = &xics_host_lpar_ops;
|
||||
else
|
||||
ops = &xics_host_direct_ops;
|
||||
xics_host = irq_alloc_host(IRQ_HOST_MAP_TREE, 0, ops,
|
||||
xics_host = irq_alloc_host(NULL, IRQ_HOST_MAP_TREE, 0, ops,
|
||||
XICS_IRQ_SPURIOUS);
|
||||
BUG_ON(xics_host == NULL);
|
||||
irq_set_default_host(xics_host);
|
||||
|
Reference in New Issue
Block a user