diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2008-05-25 22:12:32 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-06-08 23:51:16 -0400 |
commit | 19fc65b5251dfd90312ae0142cc8650cd273e6a6 (patch) | |
tree | 2b61ab4405dce8bd17e76584821856ea3baabd88 /arch/powerpc/kernel/irq.c | |
parent | 2272a55f16c998d916904bba018b0f40f430d744 (diff) |
powerpc: Fix irq_alloc_host() reference counting and callers
When I changed irq_alloc_host() to take an of_node
(52964f87c64e6c6ea671b5bf3030fb1494090a48: "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>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index b5199752ac60..e9238556ae50 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -498,7 +498,7 @@ struct irq_host *irq_alloc_host(struct device_node *of_node, | |||
498 | host->revmap_type = revmap_type; | 498 | host->revmap_type = revmap_type; |
499 | host->inval_irq = inval_irq; | 499 | host->inval_irq = inval_irq; |
500 | host->ops = ops; | 500 | host->ops = ops; |
501 | host->of_node = of_node; | 501 | host->of_node = of_node_get(of_node); |
502 | 502 | ||
503 | if (host->ops->match == NULL) | 503 | if (host->ops->match == NULL) |
504 | host->ops->match = default_irq_host_match; | 504 | host->ops->match = default_irq_host_match; |