From: David Daney Date: Wed, 29 Aug 2012 23:09:22 +0000 (-0700) Subject: MIPS: OCTEON: Register ciu/ciu2 as the default irq_domain. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c9f0f0c0e139f84dbfdfa51a66dbfd35f9b7d5b0;p=openwrt%2Fstaging%2Fblogic.git MIPS: OCTEON: Register ciu/ciu2 as the default irq_domain. This makes it possible to call irq_create_mapping(NULL, ??) Signed-off-by: David Daney --- diff --git a/arch/mips/cavium-octeon/octeon-irq.c b/arch/mips/cavium-octeon/octeon-irq.c index fadec885916a..02b15eed4bcd 100644 --- a/arch/mips/cavium-octeon/octeon-irq.c +++ b/arch/mips/cavium-octeon/octeon-irq.c @@ -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.");