of/irq: simplify args to irq_create_of_mapping
[linux-2.6-block.git] / arch / powerpc / platforms / cell / spider-pic.c
index 8e299447127e108a7d0b8179fa085a8b245f8dbb..d20680446174f477665bf9892c846b52efe3f8f0 100644 (file)
@@ -235,12 +235,9 @@ static unsigned int __init spider_find_cascade_and_node(struct spider_pic *pic)
        /* First, we check whether we have a real "interrupts" in the device
         * tree in case the device-tree is ever fixed
         */
-       struct of_irq oirq;
-       if (of_irq_map_one(pic->host->of_node, 0, &oirq) == 0) {
-               virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
-                                            oirq.size);
-               return virq;
-       }
+       struct of_phandle_args oirq;
+       if (of_irq_parse_one(pic->host->of_node, 0, &oirq) == 0)
+               return irq_create_of_mapping(&oirq);
 
        /* Now do the horrible hacks */
        tmp = of_get_property(pic->host->of_node, "#interrupt-cells", NULL);