aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9260.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-04-23 03:28:34 -0400
committerArnd Bergmann <arnd@arndb.de>2011-07-28 11:07:28 -0400
commit92100c12ca1bc5f347ff41c1413f9db07c4d276c (patch)
treecbf4379cce962c550d32ab5dfd6d10dac7fb70db /arch/arm/mach-at91/at91sam9260.c
parent21d08b9d5536ac418bbce4f419fe2b528b7ddf31 (diff)
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/at91sam9260.c')
-rw-r--r--arch/arm/mach-at91/at91sam9260.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c
index 366c5d69393b..164873fa965f 100644
--- a/arch/arm/mach-at91/at91sam9260.c
+++ b/arch/arm/mach-at91/at91sam9260.c
@@ -410,19 +410,8 @@ static unsigned int at91sam9260_default_irq_priority[NR_AIC_IRQS] __initdata = {
410 0, /* Advanced Interrupt Controller */ 410 0, /* Advanced Interrupt Controller */
411}; 411};
412 412
413void __init at91sam9260_init_interrupts(unsigned int priority[NR_AIC_IRQS])
414{
415 if (!priority)
416 priority = at91sam9260_default_irq_priority;
417
418 /* Initialize the AIC interrupt controller */
419 at91_aic_init(priority);
420
421 /* Enable GPIO interrupts */
422 at91_gpio_irq_setup();
423}
424
425struct at91_soc __initdata at91sam9260_soc = { 413struct at91_soc __initdata at91sam9260_soc = {
426 .map_io = at91sam9260_map_io, 414 .map_io = at91sam9260_map_io,
415 .default_irq_priority = at91sam9260_default_irq_priority,
427 .init = at91sam9260_initialize, 416 .init = at91sam9260_initialize,
428}; 417};