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 7eea3a64bdf7..84e59c97391f 100644 --- a/arch/powerpc/sysdev/uic.c +++ b/arch/powerpc/sysdev/uic.c | |||
@@ -270,13 +270,11 @@ static struct uic * __init uic_init_one(struct device_node *node) | |||
270 | } | 270 | } |
271 | uic->dcrbase = *dcrreg; | 271 | uic->dcrbase = *dcrreg; |
272 | 272 | ||
273 | uic->irqhost = irq_alloc_host(node, IRQ_DOMAIN_MAP_LINEAR, | 273 | uic->irqhost = irq_domain_add_linear(node, NR_UIC_INTS, &uic_host_ops, |
274 | NR_UIC_INTS, &uic_host_ops, -1); | 274 | uic); |
275 | if (! uic->irqhost) | 275 | if (! uic->irqhost) |
276 | return NULL; /* FIXME: panic? */ | 276 | return NULL; /* FIXME: panic? */ |
277 | 277 | ||
278 | uic->irqhost->host_data = uic; | ||
279 | |||
280 | /* Start with all interrupts disabled, level and non-critical */ | 278 | /* Start with all interrupts disabled, level and non-critical */ |
281 | mtdcr(uic->dcrbase + UIC_ER, 0); | 279 | mtdcr(uic->dcrbase + UIC_ER, 0); |
282 | mtdcr(uic->dcrbase + UIC_CR, 0); | 280 | mtdcr(uic->dcrbase + UIC_CR, 0); |