irq_domain: Replace irq_alloc_host() with revmap-specific initializers
[deliverable/linux.git] / arch / powerpc / platforms / 85xx / socrates_fpga_pic.c
index e3ef7c9ed7b1bb315152e53d78ed75cedac1ab48..1092c121adf3c32d5a78ddc5035938cbf4ecae97 100644 (file)
@@ -280,9 +280,8 @@ void socrates_fpga_pic_init(struct device_node *pic)
        int i;
 
        /* Setup an irq_domain structure */
-       socrates_fpga_pic_irq_host = irq_alloc_host(pic, IRQ_DOMAIN_MAP_LINEAR,
-                       SOCRATES_FPGA_NUM_IRQS, &socrates_fpga_pic_host_ops,
-                       SOCRATES_FPGA_NUM_IRQS);
+       socrates_fpga_pic_irq_host = irq_domain_add_linear(pic,
+                   SOCRATES_FPGA_NUM_IRQS, &socrates_fpga_pic_host_ops, NULL);
        if (socrates_fpga_pic_irq_host == NULL) {
                pr_err("FPGA PIC: Unable to allocate host\n");
                return;
This page took 0.023209 seconds and 5 git commands to generate.