diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6q.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index b47e98b7d53..8c2a649192c 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/irq.h> | 18 | #include <linux/irq.h> |
19 | #include <linux/irqdomain.h> | ||
20 | #include <linux/of.h> | 19 | #include <linux/of.h> |
21 | #include <linux/of_address.h> | 20 | #include <linux/of_address.h> |
22 | #include <linux/of_irq.h> | 21 | #include <linux/of_irq.h> |
@@ -136,21 +135,8 @@ static void __init imx6q_map_io(void) | |||
136 | imx6q_clock_map_io(); | 135 | imx6q_clock_map_io(); |
137 | } | 136 | } |
138 | 137 | ||
139 | static int __init imx6q_gpio_add_irq_domain(struct device_node *np, | ||
140 | struct device_node *interrupt_parent) | ||
141 | { | ||
142 | static int gpio_irq_base = MXC_GPIO_IRQ_START + ARCH_NR_GPIOS; | ||
143 | |||
144 | gpio_irq_base -= 32; | ||
145 | irq_domain_add_legacy(np, 32, gpio_irq_base, 0, &irq_domain_simple_ops, | ||
146 | NULL); | ||
147 | |||
148 | return 0; | ||
149 | } | ||
150 | |||
151 | static const struct of_device_id imx6q_irq_match[] __initconst = { | 138 | static const struct of_device_id imx6q_irq_match[] __initconst = { |
152 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | 139 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, |
153 | { .compatible = "fsl,imx6q-gpio", .data = imx6q_gpio_add_irq_domain, }, | ||
154 | { /* sentinel */ } | 140 | { /* sentinel */ } |
155 | }; | 141 | }; |
156 | 142 | ||