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/at91rm9200.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/at91rm9200.c')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 489f4d90f274..d7801bed9afe 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c | |||
@@ -379,19 +379,8 @@ static unsigned int at91rm9200_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
379 | 0 /* Advanced Interrupt Controller (IRQ6) */ | 379 | 0 /* Advanced Interrupt Controller (IRQ6) */ |
380 | }; | 380 | }; |
381 | 381 | ||
382 | void __init at91rm9200_init_interrupts(unsigned int priority[NR_AIC_IRQS]) | ||
383 | { | ||
384 | if (!priority) | ||
385 | priority = at91rm9200_default_irq_priority; | ||
386 | |||
387 | /* Initialize the AIC interrupt controller */ | ||
388 | at91_aic_init(priority); | ||
389 | |||
390 | /* Enable GPIO interrupts */ | ||
391 | at91_gpio_irq_setup(); | ||
392 | } | ||
393 | |||
394 | struct at91_soc __initdata at91rm9200_soc = { | 382 | struct at91_soc __initdata at91rm9200_soc = { |
395 | .map_io = at91rm9200_map_io, | 383 | .map_io = at91rm9200_map_io, |
384 | .default_irq_priority = at91rm9200_default_irq_priority, | ||
396 | .init = at91rm9200_initialize, | 385 | .init = at91rm9200_initialize, |
397 | }; | 386 | }; |