diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2013-03-10 10:54:46 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2013-04-08 15:42:27 -0400 |
commit | f1dc6c4f77678979868fe220c6913890e13473d8 (patch) | |
tree | 7c1e1c28537fe7dde8ed6708f8105dbe01fccaa4 /arch/arm/mach-sunxi/sunxi.c | |
parent | 119fd635e383c1a58990e5805acc29f48ed3e360 (diff) |
irqchip: sunxi: Make use of the IRQCHIP_DECLARE macro
This allows to remove some boilerplate code. At the same time, call the
set_handle_irq function in the initialization function of the irqchip,
so that we can remove it from the machine declaration.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-sunxi/sunxi.c')
-rw-r--r-- | arch/arm/mach-sunxi/sunxi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index b26748d82045..c99ab1bdee4d 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c | |||
@@ -14,13 +14,13 @@ | |||
14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/irqchip.h> | ||
17 | #include <linux/of_address.h> | 18 | #include <linux/of_address.h> |
18 | #include <linux/of_irq.h> | 19 | #include <linux/of_irq.h> |
19 | #include <linux/of_platform.h> | 20 | #include <linux/of_platform.h> |
20 | #include <linux/io.h> | 21 | #include <linux/io.h> |
21 | 22 | ||
22 | #include <linux/clk/sunxi.h> | 23 | #include <linux/clk/sunxi.h> |
23 | #include <linux/irqchip/sunxi.h> | ||
24 | 24 | ||
25 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
26 | #include <asm/mach/map.h> | 26 | #include <asm/mach/map.h> |
@@ -104,8 +104,7 @@ static const char * const sunxi_board_dt_compat[] = { | |||
104 | DT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)") | 104 | DT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)") |
105 | .init_machine = sunxi_dt_init, | 105 | .init_machine = sunxi_dt_init, |
106 | .map_io = sunxi_map_io, | 106 | .map_io = sunxi_map_io, |
107 | .init_irq = sunxi_init_irq, | 107 | .init_irq = irqchip_init, |
108 | .handle_irq = sunxi_handle_irq, | ||
109 | .restart = sunxi_restart, | 108 | .restart = sunxi_restart, |
110 | .init_time = sunxi_timer_init, | 109 | .init_time = sunxi_timer_init, |
111 | .dt_compat = sunxi_board_dt_compat, | 110 | .dt_compat = sunxi_board_dt_compat, |