]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/sysdev/ipic.c
irq_domain: Replace irq_alloc_host() with revmap-specific initializers
[karo-tx-linux.git] / arch / powerpc / sysdev / ipic.c
index 9abed376054519cb6f8eecca28f6923979fcecad..0eaaa01c11b3fa654e48fdd5a50396cad2e1492b 100644 (file)
@@ -728,9 +728,8 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags)
        if (ipic == NULL)
                return NULL;
 
-       ipic->irqhost = irq_alloc_host(node, IRQ_DOMAIN_MAP_LINEAR,
-                                      NR_IPIC_INTS,
-                                      &ipic_host_ops, 0);
+       ipic->irqhost = irq_domain_add_linear(node, NR_IPIC_INTS,
+                                             &ipic_host_ops, ipic);
        if (ipic->irqhost == NULL) {
                kfree(ipic);
                return NULL;
@@ -738,8 +737,6 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags)
 
        ipic->regs = ioremap(res.start, resource_size(&res));
 
-       ipic->irqhost->host_data = ipic;
-
        /* init hw */
        ipic_write(ipic->regs, IPIC_SICNR, 0x0);