diff options
author | Rob Herring <robh@kernel.org> | 2014-05-29 17:44:27 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-06-24 15:15:59 -0400 |
commit | 44fa72d129916575befad806c9c6045b623beb26 (patch) | |
tree | 89f9549df0319012fb2f8bfbd02277347ba7ce26 /arch/arm/mach-integrator | |
parent | 59318461c8f65f6f322e391f333dfb6ec2fe4446 (diff) |
ARM: integrator: convert to use irqchip_init
Now that versatile-fpga irqchip has IRQCHIP_DECLARE support, the interrupt
related initialization can be removed.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index dd0cc677d596..645da16724af 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/clockchips.h> | 31 | #include <linux/clockchips.h> |
32 | #include <linux/interrupt.h> | 32 | #include <linux/interrupt.h> |
33 | #include <linux/io.h> | 33 | #include <linux/io.h> |
34 | #include <linux/irqchip/versatile-fpga.h> | 34 | #include <linux/irqchip.h> |
35 | #include <linux/mtd/physmap.h> | 35 | #include <linux/mtd/physmap.h> |
36 | #include <linux/clk.h> | 36 | #include <linux/clk.h> |
37 | #include <linux/platform_data/clk-integrator.h> | 37 | #include <linux/platform_data/clk-integrator.h> |
@@ -439,15 +439,10 @@ static void __init ap_of_timer_init(void) | |||
439 | integrator_clockevent_init(rate, base, irq); | 439 | integrator_clockevent_init(rate, base, irq); |
440 | } | 440 | } |
441 | 441 | ||
442 | static const struct of_device_id fpga_irq_of_match[] __initconst = { | ||
443 | { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, | ||
444 | { /* Sentinel */ } | ||
445 | }; | ||
446 | |||
447 | static void __init ap_init_irq_of(void) | 442 | static void __init ap_init_irq_of(void) |
448 | { | 443 | { |
449 | cm_init(); | 444 | cm_init(); |
450 | of_irq_init(fpga_irq_of_match); | 445 | irqchip_init(); |
451 | } | 446 | } |
452 | 447 | ||
453 | /* For the Device Tree, add in the UART callbacks as AUXDATA */ | 448 | /* For the Device Tree, add in the UART callbacks as AUXDATA */ |
@@ -570,7 +565,6 @@ DT_MACHINE_START(INTEGRATOR_AP_DT, "ARM Integrator/AP (Device Tree)") | |||
570 | .map_io = ap_map_io, | 565 | .map_io = ap_map_io, |
571 | .init_early = ap_init_early, | 566 | .init_early = ap_init_early, |
572 | .init_irq = ap_init_irq_of, | 567 | .init_irq = ap_init_irq_of, |
573 | .handle_irq = fpga_handle_irq, | ||
574 | .init_time = ap_of_timer_init, | 568 | .init_time = ap_of_timer_init, |
575 | .init_machine = ap_init_of, | 569 | .init_machine = ap_init_of, |
576 | .restart = integrator_restart, | 570 | .restart = integrator_restart, |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index a938242b0c95..7ade59046511 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/amba/clcd.h> | 20 | #include <linux/amba/clcd.h> |
21 | #include <linux/amba/mmci.h> | 21 | #include <linux/amba/mmci.h> |
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/irqchip/versatile-fpga.h> | 23 | #include <linux/irqchip.h> |
24 | #include <linux/gfp.h> | 24 | #include <linux/gfp.h> |
25 | #include <linux/mtd/physmap.h> | 25 | #include <linux/mtd/physmap.h> |
26 | #include <linux/of_irq.h> | 26 | #include <linux/of_irq.h> |
@@ -235,15 +235,10 @@ static void __init intcp_init_early(void) | |||
235 | sched_clock_register(intcp_read_sched_clock, 32, 24000000); | 235 | sched_clock_register(intcp_read_sched_clock, 32, 24000000); |
236 | } | 236 | } |
237 | 237 | ||
238 | static const struct of_device_id fpga_irq_of_match[] __initconst = { | ||
239 | { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, | ||
240 | { /* Sentinel */ } | ||
241 | }; | ||
242 | |||
243 | static void __init intcp_init_irq_of(void) | 238 | static void __init intcp_init_irq_of(void) |
244 | { | 239 | { |
245 | cm_init(); | 240 | cm_init(); |
246 | of_irq_init(fpga_irq_of_match); | 241 | irqchip_init(); |
247 | } | 242 | } |
248 | 243 | ||
249 | /* | 244 | /* |
@@ -340,7 +335,6 @@ DT_MACHINE_START(INTEGRATOR_CP_DT, "ARM Integrator/CP (Device Tree)") | |||
340 | .map_io = intcp_map_io, | 335 | .map_io = intcp_map_io, |
341 | .init_early = intcp_init_early, | 336 | .init_early = intcp_init_early, |
342 | .init_irq = intcp_init_irq_of, | 337 | .init_irq = intcp_init_irq_of, |
343 | .handle_irq = fpga_handle_irq, | ||
344 | .init_machine = intcp_init_of, | 338 | .init_machine = intcp_init_of, |
345 | .restart = integrator_restart, | 339 | .restart = integrator_restart, |
346 | .dt_compat = intcp_dt_board_compat, | 340 | .dt_compat = intcp_dt_board_compat, |