diff options
-rw-r--r-- | arch/arm/mach-davinci/gpio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/gpio.c b/arch/arm/mach-davinci/gpio.c index 34ba4ceda347..40327b557d79 100644 --- a/arch/arm/mach-davinci/gpio.c +++ b/arch/arm/mach-davinci/gpio.c | |||
@@ -45,6 +45,7 @@ static struct gpio_controller __iomem * __init gpio2controller(unsigned gpio) | |||
45 | return __gpio_to_controller(gpio); | 45 | return __gpio_to_controller(gpio); |
46 | } | 46 | } |
47 | 47 | ||
48 | static int __init davinci_gpio_irq_setup(void); | ||
48 | 49 | ||
49 | /*--------------------------------------------------------------------------*/ | 50 | /*--------------------------------------------------------------------------*/ |
50 | 51 | ||
@@ -157,6 +158,7 @@ static int __init davinci_gpio_setup(void) | |||
157 | gpiochip_add(&chips[i].chip); | 158 | gpiochip_add(&chips[i].chip); |
158 | } | 159 | } |
159 | 160 | ||
161 | davinci_gpio_irq_setup(); | ||
160 | return 0; | 162 | return 0; |
161 | } | 163 | } |
162 | pure_initcall(davinci_gpio_setup); | 164 | pure_initcall(davinci_gpio_setup); |
@@ -238,6 +240,7 @@ gpio_irq_handler(unsigned irq, struct irq_desc *desc) | |||
238 | mask <<= 16; | 240 | mask <<= 16; |
239 | 241 | ||
240 | /* temporarily mask (level sensitive) parent IRQ */ | 242 | /* temporarily mask (level sensitive) parent IRQ */ |
243 | desc->chip->mask(irq); | ||
241 | desc->chip->ack(irq); | 244 | desc->chip->ack(irq); |
242 | while (1) { | 245 | while (1) { |
243 | u32 status; | 246 | u32 status; |
@@ -333,4 +336,3 @@ static int __init davinci_gpio_irq_setup(void) | |||
333 | 336 | ||
334 | return 0; | 337 | return 0; |
335 | } | 338 | } |
336 | arch_initcall(davinci_gpio_irq_setup); | ||