diff options
Diffstat (limited to 'arch/arm/mach-at91/irq.c')
| -rw-r--r-- | arch/arm/mach-at91/irq.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/irq.c b/arch/arm/mach-at91/irq.c index 1e02c0e49dcc..febc2ee901a5 100644 --- a/arch/arm/mach-at91/irq.c +++ b/arch/arm/mach-at91/irq.c | |||
| @@ -502,14 +502,19 @@ int __init at91_aic5_of_init(struct device_node *node, | |||
| 502 | /* | 502 | /* |
| 503 | * Initialize the AIC interrupt controller. | 503 | * Initialize the AIC interrupt controller. |
| 504 | */ | 504 | */ |
| 505 | void __init at91_aic_init(unsigned int *priority) | 505 | void __init at91_aic_init(unsigned int *priority, unsigned int ext_irq_mask) |
| 506 | { | 506 | { |
| 507 | unsigned int i; | 507 | unsigned int i; |
| 508 | int irq_base; | 508 | int irq_base; |
| 509 | 509 | ||
| 510 | if (at91_aic_pm_init()) | 510 | at91_extern_irq = kzalloc(BITS_TO_LONGS(n_irqs) |
| 511 | * sizeof(*at91_extern_irq), GFP_KERNEL); | ||
| 512 | |||
| 513 | if (at91_aic_pm_init() || at91_extern_irq == NULL) | ||
| 511 | panic("Unable to allocate bit maps\n"); | 514 | panic("Unable to allocate bit maps\n"); |
| 512 | 515 | ||
| 516 | *at91_extern_irq = ext_irq_mask; | ||
| 517 | |||
| 513 | at91_aic_base = ioremap(AT91_AIC, 512); | 518 | at91_aic_base = ioremap(AT91_AIC, 512); |
| 514 | if (!at91_aic_base) | 519 | if (!at91_aic_base) |
| 515 | panic("Unable to ioremap AIC registers\n"); | 520 | panic("Unable to ioremap AIC registers\n"); |
