diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-11-05 17:18:28 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-01-12 11:47:32 -0500 |
commit | 0529e315bbda5d502c93df2cfafba9bb337fbdf4 (patch) | |
tree | 461bf1c88c60e294e598eaa52d9b0b46b4ffd3ba /arch/arm/mach-highbank | |
parent | 81243e444c6e9d1625073e4a3d3bc244c8a545f0 (diff) |
ARM: use common irqchip_init for GIC init
Convert all GIC DT initialization over to use common irqchip_init
function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Bryan Huntsman <bryanh@codeaurora.org>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Viresh Kumar <viresh.linux@gmail.com>
Cc: Shiraz Hashim <shiraz.hashim@st.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-highbank')
-rw-r--r-- | arch/arm/mach-highbank/highbank.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index 6d151f9a3bd4..f9191eacd0fc 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/dma-mapping.h> | 18 | #include <linux/dma-mapping.h> |
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
21 | #include <linux/irqchip.h> | ||
21 | #include <linux/irqdomain.h> | 22 | #include <linux/irqdomain.h> |
22 | #include <linux/of.h> | 23 | #include <linux/of.h> |
23 | #include <linux/of_irq.h> | 24 | #include <linux/of_irq.h> |
@@ -32,7 +33,6 @@ | |||
32 | #include <asm/smp_twd.h> | 33 | #include <asm/smp_twd.h> |
33 | #include <asm/hardware/arm_timer.h> | 34 | #include <asm/hardware/arm_timer.h> |
34 | #include <asm/hardware/timer-sp.h> | 35 | #include <asm/hardware/timer-sp.h> |
35 | #include <asm/hardware/gic.h> | ||
36 | #include <asm/hardware/cache-l2x0.h> | 36 | #include <asm/hardware/cache-l2x0.h> |
37 | #include <asm/mach/arch.h> | 37 | #include <asm/mach/arch.h> |
38 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
@@ -66,12 +66,6 @@ void highbank_set_cpu_jump(int cpu, void *jump_addr) | |||
66 | HB_JUMP_TABLE_PHYS(cpu) + 15); | 66 | HB_JUMP_TABLE_PHYS(cpu) + 15); |
67 | } | 67 | } |
68 | 68 | ||
69 | const static struct of_device_id irq_match[] = { | ||
70 | { .compatible = "arm,cortex-a15-gic", .data = gic_of_init, }, | ||
71 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | ||
72 | {} | ||
73 | }; | ||
74 | |||
75 | #ifdef CONFIG_CACHE_L2X0 | 69 | #ifdef CONFIG_CACHE_L2X0 |
76 | static void highbank_l2x0_disable(void) | 70 | static void highbank_l2x0_disable(void) |
77 | { | 71 | { |
@@ -82,7 +76,7 @@ static void highbank_l2x0_disable(void) | |||
82 | 76 | ||
83 | static void __init highbank_init_irq(void) | 77 | static void __init highbank_init_irq(void) |
84 | { | 78 | { |
85 | of_irq_init(irq_match); | 79 | irqchip_init(); |
86 | 80 | ||
87 | if (of_find_compatible_node(NULL, NULL, "arm,cortex-a9")) | 81 | if (of_find_compatible_node(NULL, NULL, "arm,cortex-a9")) |
88 | highbank_scu_map_io(); | 82 | highbank_scu_map_io(); |