summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91cap9.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-04-23 15:28:34 +0800
committerArnd Bergmann <arnd@arndb.de>2011-07-28 15:07:28 +0000
commit92100c12ca1bc5f347ff41c1413f9db07c4d276c (patch)
treecbf4379cce962c550d32ab5dfd6d10dac7fb70db /arch/arm/mach-at91/at91cap9.c
parent21d08b9d5536ac418bbce4f419fe2b528b7ddf31 (diff)
downloadtalos-obmc-linux-92100c12ca1bc5f347ff41c1413f9db07c4d276c.tar.gz
talos-obmc-linux-92100c12ca1bc5f347ff41c1413f9db07c4d276c.zip
at91: factorize at91 interrupts init to soc
they are the same except the default priority Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/at91cap9.c')
-rw-r--r--arch/arm/mach-at91/at91cap9.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-at91/at91cap9.c b/arch/arm/mach-at91/at91cap9.c
index 7ec9eeb64286..9a0137043780 100644
--- a/arch/arm/mach-at91/at91cap9.c
+++ b/arch/arm/mach-at91/at91cap9.c
@@ -403,19 +403,8 @@ static unsigned int at91cap9_default_irq_priority[NR_AIC_IRQS] __initdata = {
0, /* Advanced Interrupt Controller (IRQ1) */
};
-void __init at91cap9_init_interrupts(unsigned int priority[NR_AIC_IRQS])
-{
- if (!priority)
- priority = at91cap9_default_irq_priority;
-
- /* Initialize the AIC interrupt controller */
- at91_aic_init(priority);
-
- /* Enable GPIO interrupts */
- at91_gpio_irq_setup();
-}
-
struct at91_soc __initdata at91cap9_soc = {
.map_io = at91cap9_map_io,
+ .default_irq_priority = at91cap9_default_irq_priority,
.init = at91cap9_initialize,
};
OpenPOWER on IntegriCloud