[xburst] jz4740-gpio: Fix potential race condition
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 8 Mar 2010 20:34:40 +0000 (20:34 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Mon, 8 Mar 2010 20:34:40 +0000 (20:34 +0000)
SVN-Revision: 20071

target/linux/xburst/files-2.6.32/arch/mips/jz4740/gpio.c

index df5df5c..8a99f4d 100644 (file)
@@ -312,8 +312,8 @@ static unsigned int jz_gpio_irq_startup(unsigned int irq)
 
        jz_gpio_set_irq_bit(irq, JZ_REG_GPIO_SELECT_SET);
 
-       jz_gpio_irq_unmask(irq);
        desc->status &= ~IRQ_MASKED;
+       jz_gpio_irq_unmask(irq);
 
        return 0;
 }