aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-davinci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r--drivers/gpio/gpio-davinci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 37cf95254df1..5d163c0d0a74 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -22,6 +22,7 @@
22#include <linux/of_device.h> 22#include <linux/of_device.h>
23#include <linux/platform_device.h> 23#include <linux/platform_device.h>
24#include <linux/platform_data/gpio-davinci.h> 24#include <linux/platform_data/gpio-davinci.h>
25#include <linux/irqchip/chained_irq.h>
25 26
26struct davinci_gpio_regs { 27struct davinci_gpio_regs {
27 u32 dir; 28 u32 dir;
@@ -321,8 +322,7 @@ gpio_irq_handler(unsigned irq, struct irq_desc *desc)
321 mask <<= 16; 322 mask <<= 16;
322 323
323 /* temporarily mask (level sensitive) parent IRQ */ 324 /* temporarily mask (level sensitive) parent IRQ */
324 desc->irq_data.chip->irq_mask(&desc->irq_data); 325 chained_irq_enter(irq_desc_get_chip(desc), desc);
325 desc->irq_data.chip->irq_ack(&desc->irq_data);
326 while (1) { 326 while (1) {
327 u32 status; 327 u32 status;
328 int bit; 328 int bit;
@@ -343,7 +343,7 @@ gpio_irq_handler(unsigned irq, struct irq_desc *desc)
343 d->chip.base + bit)); 343 d->chip.base + bit));
344 } 344 }
345 } 345 }
346 desc->irq_data.chip->irq_unmask(&desc->irq_data); 346 chained_irq_exit(irq_desc_get_chip(desc), desc);
347 /* now it may re-trigger */ 347 /* now it may re-trigger */
348} 348}
349 349