irq_domain: Replace irq_alloc_host() with revmap-specific initializers
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / sysdev / i8259.c
index 7e67890b8fc29b6450bee34594641e7f31e398b8..573a73bd954a9e61a0591e5f1e63d39640b7cb2c 100644 (file)
@@ -263,8 +263,7 @@ void i8259_init(struct device_node *node, unsigned long intack_addr)
        raw_spin_unlock_irqrestore(&i8259_lock, flags);
 
        /* create a legacy host */
-       i8259_host = irq_alloc_host(node, IRQ_DOMAIN_MAP_LEGACY,
-                                   0, &i8259_host_ops, 0);
+       i8259_host = irq_domain_add_legacy(node, &i8259_host_ops, NULL);
        if (i8259_host == NULL) {
                printk(KERN_ERR "i8259: failed to allocate irq host !\n");
                return;