diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-07-18 08:58:06 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-08-16 09:19:11 -0400 |
commit | c0e811d9f5d1ee708f06c4f0a1009f8a1d22f364 (patch) | |
tree | c8076f71d9bf3df81e13e07e9121cba564cbe8d2 | |
parent | 8a564065825cb92d412f107812ef50fe9ef43668 (diff) |
gpio/mxc: add chained_irq_enter/exit() to mx2_gpio_irq_handler
Similar to commit
0e44b6e (gpio/mxc: add chained_irq_enter/exit() to mx3_gpio_irq_handler())
. It doesn't seem to be critical to make the irqs work, but still it is
more correct.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-mxc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 875a7c539591..3307f6db3a92 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c | |||
@@ -292,6 +292,9 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc) | |||
292 | { | 292 | { |
293 | u32 irq_msk, irq_stat; | 293 | u32 irq_msk, irq_stat; |
294 | struct mxc_gpio_port *port; | 294 | struct mxc_gpio_port *port; |
295 | struct irq_chip *chip = irq_get_chip(irq); | ||
296 | |||
297 | chained_irq_enter(chip, desc); | ||
295 | 298 | ||
296 | /* walk through all interrupt status registers */ | 299 | /* walk through all interrupt status registers */ |
297 | list_for_each_entry(port, &mxc_gpio_ports, node) { | 300 | list_for_each_entry(port, &mxc_gpio_ports, node) { |
@@ -303,6 +306,7 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc) | |||
303 | if (irq_stat) | 306 | if (irq_stat) |
304 | mxc_gpio_irq_handler(port, irq_stat); | 307 | mxc_gpio_irq_handler(port, irq_stat); |
305 | } | 308 | } |
309 | chained_irq_exit(chip, desc); | ||
306 | } | 310 | } |
307 | 311 | ||
308 | /* | 312 | /* |