[ARM] 3455/1: ARM: OMAP: 7/8 Misc updates, take 2
[deliverable/linux.git] / arch / arm / mach-ixp4xx / common.c
index fbadf3021b9ea0e70074d4388ee127df012dfc4b..a0888e160e3b7f180c8c91fafa9c636a284a919c 100644 (file)
@@ -91,7 +91,7 @@ static void ixp4xx_config_irq(unsigned irq, enum ixp4xx_irq_type type);
 /*
  * IRQ -> GPIO mapping table
  */
-static int irq2gpio[32] = {
+static char irq2gpio[32] = {
        -1, -1, -1, -1, -1, -1,  0,  1,
        -1, -1, -1, -1, -1, -1, -1, -1,
        -1, -1, -1,  2,  3,  4,  5,  6,
@@ -153,6 +153,9 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)
        /* Set the new style */
        *int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE));
 
+       /* Configure the line as an input */
+       gpio_line_config(line, IXP4XX_GPIO_IN);
+
        return 0;
 }
 
This page took 0.024631 seconds and 5 git commands to generate.