diff options
Diffstat (limited to 'arch/powerpc/sysdev/uic.c')
-rw-r--r-- | arch/powerpc/sysdev/uic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/uic.c b/arch/powerpc/sysdev/uic.c index 625b275c379..d35405c5943 100644 --- a/arch/powerpc/sysdev/uic.c +++ b/arch/powerpc/sysdev/uic.c | |||
@@ -280,12 +280,10 @@ static struct uic * __init uic_init_one(struct device_node *node) | |||
280 | } | 280 | } |
281 | uic->dcrbase = *dcrreg; | 281 | uic->dcrbase = *dcrreg; |
282 | 282 | ||
283 | uic->irqhost = irq_alloc_host(of_node_get(node), IRQ_HOST_MAP_LINEAR, | 283 | uic->irqhost = irq_alloc_host(node, IRQ_HOST_MAP_LINEAR, |
284 | NR_UIC_INTS, &uic_host_ops, -1); | 284 | NR_UIC_INTS, &uic_host_ops, -1); |
285 | if (! uic->irqhost) { | 285 | if (! uic->irqhost) |
286 | of_node_put(node); | ||
287 | return NULL; /* FIXME: panic? */ | 286 | return NULL; /* FIXME: panic? */ |
288 | } | ||
289 | 287 | ||
290 | uic->irqhost->host_data = uic; | 288 | uic->irqhost->host_data = uic; |
291 | 289 | ||