diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-08-20 04:43:32 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-09-02 21:31:44 -0400 |
commit | 0b76c5412146c1c9e8aef495d2926f31351bc3c0 (patch) | |
tree | e99af001689a62706776681577c1bcafa9d85b5f /arch/arm | |
parent | d9875690d9b89a866022ff49e3fcea892345ad92 (diff) |
gpio/mxs: adopt irq_domain support for mxs gpio driver
Remove irq_domain_add_legacy call from mach-mxs.c and have the gpio
driver adopt irqdomain support, so that we can have the mapping
between gpio and irq number available without using virtual_irq_start
and MXS_GPIO_IRQ_START.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-mxs/mach-mxs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index 8dabfe81d07c..78bf07a8cd3c 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c | |||
@@ -113,20 +113,8 @@ static int __init mxs_icoll_add_irq_domain(struct device_node *np, | |||
113 | return 0; | 113 | return 0; |
114 | } | 114 | } |
115 | 115 | ||
116 | static int __init mxs_gpio_add_irq_domain(struct device_node *np, | ||
117 | struct device_node *interrupt_parent) | ||
118 | { | ||
119 | static int gpio_irq_base = MXS_GPIO_IRQ_START; | ||
120 | |||
121 | irq_domain_add_legacy(np, 32, gpio_irq_base, 0, &irq_domain_simple_ops, NULL); | ||
122 | gpio_irq_base += 32; | ||
123 | |||
124 | return 0; | ||
125 | } | ||
126 | |||
127 | static const struct of_device_id mxs_irq_match[] __initconst = { | 116 | static const struct of_device_id mxs_irq_match[] __initconst = { |
128 | { .compatible = "fsl,mxs-icoll", .data = mxs_icoll_add_irq_domain, }, | 117 | { .compatible = "fsl,mxs-icoll", .data = mxs_icoll_add_irq_domain, }, |
129 | { .compatible = "fsl,mxs-gpio", .data = mxs_gpio_add_irq_domain, }, | ||
130 | { /* sentinel */ } | 118 | { /* sentinel */ } |
131 | }; | 119 | }; |
132 | 120 | ||