aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-dt.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/board-dt.c')
-rw-r--r--arch/arm/mach-at91/board-dt.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/board-dt.c b/arch/arm/mach-at91/board-dt.c
index 08c8ad8609b7..583b72472ad9 100644
--- a/arch/arm/mach-at91/board-dt.c
+++ b/arch/arm/mach-at91/board-dt.c
@@ -15,7 +15,7 @@
15#include <linux/init.h> 15#include <linux/init.h>
16#include <linux/module.h> 16#include <linux/module.h>
17#include <linux/gpio.h> 17#include <linux/gpio.h>
18#include <linux/irqdomain.h> 18#include <linux/of.h>
19#include <linux/of_irq.h> 19#include <linux/of_irq.h>
20#include <linux/of_platform.h> 20#include <linux/of_platform.h>
21 21
@@ -82,15 +82,17 @@ static void __init ek_add_device_nand(void)
82 at91_add_device_nand(&ek_nand_data); 82 at91_add_device_nand(&ek_nand_data);
83} 83}
84 84
85static const struct of_device_id aic_of_match[] __initconst = { 85static const struct of_device_id irq_of_match[] __initconst = {
86 { .compatible = "atmel,at91rm9200-aic", }, 86
87 {}, 87 { .compatible = "atmel,at91rm9200-aic", .data = at91_aic_of_init },
88 { .compatible = "atmel,at91rm9200-gpio", .data = at91_gpio_of_irq_setup },
89 { .compatible = "atmel,at91sam9x5-gpio", .data = at91_gpio_of_irq_setup },
90 { /*sentinel*/ }
88}; 91};
89 92
90static void __init at91_dt_init_irq(void) 93static void __init at91_dt_init_irq(void)
91{ 94{
92 irq_domain_generate_simple(aic_of_match, 0xfffff000, 0); 95 of_irq_init(irq_of_match);
93 at91_init_irq_default();
94} 96}
95 97
96static void __init at91_dt_device_init(void) 98static void __init at91_dt_device_init(void)