powerpc: Fix irq_alloc_host() reference counting and callers
When I changed irq_alloc_host() to take an of_node
(52964f87c6
: "Add an optional
device_node pointer to the irq_host"), I botched the reference
counting semantics.
Stephen pointed out that it's irq_alloc_host()'s business if
it needs to take an additional reference to the device_node,
the caller shouldn't need to care.
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
2272a55f16
commit
19fc65b525
@@ -276,7 +276,7 @@ void i8259_init(struct device_node *node, unsigned long intack_addr)
|
||||
spin_unlock_irqrestore(&i8259_lock, flags);
|
||||
|
||||
/* create a legacy host */
|
||||
i8259_host = irq_alloc_host(of_node_get(node), IRQ_HOST_MAP_LEGACY,
|
||||
i8259_host = irq_alloc_host(node, IRQ_HOST_MAP_LEGACY,
|
||||
0, &i8259_host_ops, 0);
|
||||
if (i8259_host == NULL) {
|
||||
printk(KERN_ERR "i8259: failed to allocate irq host !\n");
|
||||
|
Reference in New Issue
Block a user