MIPS: OCTEON: Register ciu/ciu2 as the default irq_domain.
authorDavid Daney <david.daney@cavium.com>
Wed, 29 Aug 2012 23:09:22 +0000 (16:09 -0700)
committerDavid Daney <david.daney@cavium.com>
Fri, 31 Aug 2012 17:46:54 +0000 (10:46 -0700)
This makes it possible to call irq_create_mapping(NULL, ??)

Signed-off-by: David Daney <david.daney@cavium.com>
arch/mips/cavium-octeon/octeon-irq.c

index fadec885916a4af6b9d45d7a427f888bbd8e1a79..02b15eed4bcd379cc0312cba80a5feb10655fa7d 100644 (file)
@@ -1244,6 +1244,7 @@ static void __init octeon_irq_init_ciu(void)
        ciu_node = of_find_compatible_node(NULL, NULL, "cavium,octeon-3860-ciu");
        if (ciu_node) {
                ciu_domain = irq_domain_add_tree(ciu_node, &octeon_irq_domain_ciu_ops, NULL);
+               irq_set_default_host(ciu_domain);
                of_node_put(ciu_node);
        } else
                panic("Cannot find device node for cavium,octeon-3860-ciu.");
@@ -1704,6 +1705,7 @@ static void __init octeon_irq_init_ciu2(void)
        ciu_node = of_find_compatible_node(NULL, NULL, "cavium,octeon-6880-ciu2");
        if (ciu_node) {
                ciu_domain = irq_domain_add_tree(ciu_node, &octeon_irq_domain_ciu2_ops, NULL);
+               irq_set_default_host(ciu_domain);
                of_node_put(ciu_node);
        } else
                panic("Cannot find device node for cavium,octeon-6880-ciu2.");