diff options
Diffstat (limited to 'arch/powerpc/sysdev/ipic.c')
-rw-r--r-- | arch/powerpc/sysdev/ipic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index f95d10ba3b9c..caba1c0be5a7 100644 --- a/arch/powerpc/sysdev/ipic.c +++ b/arch/powerpc/sysdev/ipic.c | |||
@@ -735,13 +735,11 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags) | |||
735 | 735 | ||
736 | memset(ipic, 0, sizeof(struct ipic)); | 736 | memset(ipic, 0, sizeof(struct ipic)); |
737 | 737 | ||
738 | ipic->irqhost = irq_alloc_host(of_node_get(node), IRQ_HOST_MAP_LINEAR, | 738 | ipic->irqhost = irq_alloc_host(node, IRQ_HOST_MAP_LINEAR, |
739 | NR_IPIC_INTS, | 739 | NR_IPIC_INTS, |
740 | &ipic_host_ops, 0); | 740 | &ipic_host_ops, 0); |
741 | if (ipic->irqhost == NULL) { | 741 | if (ipic->irqhost == NULL) |
742 | of_node_put(node); | ||
743 | return NULL; | 742 | return NULL; |
744 | } | ||
745 | 743 | ||
746 | ipic->regs = ioremap(res.start, res.end - res.start + 1); | 744 | ipic->regs = ioremap(res.start, res.end - res.start + 1); |
747 | 745 | ||