diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-04-23 03:28:34 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-07-28 11:07:28 -0400 |
commit | 92100c12ca1bc5f347ff41c1413f9db07c4d276c (patch) | |
tree | cbf4379cce962c550d32ab5dfd6d10dac7fb70db /arch/arm/mach-at91/at91sam9263.c | |
parent | 21d08b9d5536ac418bbce4f419fe2b528b7ddf31 (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/at91sam9263.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9263.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index 49f83dffd2aa..3140a13abc4a 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -372,19 +372,8 @@ static unsigned int at91sam9263_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
372 | 0, /* Advanced Interrupt Controller (IRQ1) */ | 372 | 0, /* Advanced Interrupt Controller (IRQ1) */ |
373 | }; | 373 | }; |
374 | 374 | ||
375 | void __init at91sam9263_init_interrupts(unsigned int priority[NR_AIC_IRQS]) | ||
376 | { | ||
377 | if (!priority) | ||
378 | priority = at91sam9263_default_irq_priority; | ||
379 | |||
380 | /* Initialize the AIC interrupt controller */ | ||
381 | at91_aic_init(priority); | ||
382 | |||
383 | /* Enable GPIO interrupts */ | ||
384 | at91_gpio_irq_setup(); | ||
385 | } | ||
386 | |||
387 | struct at91_soc __initdata at91sam9263_soc = { | 375 | struct at91_soc __initdata at91sam9263_soc = { |
388 | .map_io = at91sam9263_map_io, | 376 | .map_io = at91sam9263_map_io, |
377 | .default_irq_priority = at91sam9263_default_irq_priority, | ||
389 | .init = at91sam9263_initialize, | 378 | .init = at91sam9263_initialize, |
390 | }; | 379 | }; |