]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/arm/mach-ixp4xx/common.c
[ARM] 3192/1: Remove gpio_isr_line_clear() API from IXP4xx
[linux-beck.git] / arch / arm / mach-ixp4xx / common.c
index f3c687cf00713dcbcaf20eb4689aac5f05818b98..9f33cb21e7f38d98adb33f4f0fe5c7d315281dcb 100644 (file)
@@ -142,6 +142,8 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)
        *int_reg &= ~(IXP4XX_GPIO_STYLE_CLEAR <<
                        (line * IXP4XX_GPIO_STYLE_SIZE));
 
+       *IXP4XX_GPIO_GPISR = (1 << line);
+
        /* Set the new style */
        *int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE));
 
@@ -169,7 +171,7 @@ static void ixp4xx_irq_ack(unsigned int irq)
        int line = (irq < 32) ? irq2gpio[irq] : -1;
 
        if (line >= 0)
-               gpio_line_isr_clear(line);
+               *IXP4XX_GPIO_GPISR = (1 << line);
 }
 
 /*