Merge branch 'asoc-5.3' into asoc-linus
[sfrench/cifs-2.6.git] / arch / arm / mach-omap1 / board-ams-delta.c
index c2affc7279678e44c52fd6a9012053fd20f5a802..a2aa7a12b3742fd8d15ba9bc4af53a56ca1f1ab2 100644 (file)
@@ -10,6 +10,7 @@
  */
 #include <linux/gpio/driver.h>
 #include <linux/gpio/machine.h>
+#include <linux/gpio/consumer.h>
 #include <linux/gpio.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
@@ -608,12 +609,12 @@ static void __init modem_assign_irq(struct gpio_chip *chip)
        struct gpio_desc *gpiod;
 
        gpiod = gpiochip_request_own_desc(chip, AMS_DELTA_GPIO_PIN_MODEM_IRQ,
-                                         "modem_irq", 0);
+                                         "modem_irq", GPIO_ACTIVE_HIGH,
+                                         GPIOD_IN);
        if (IS_ERR(gpiod)) {
                pr_err("%s: modem IRQ GPIO request failed (%ld)\n", __func__,
                       PTR_ERR(gpiod));
        } else {
-               gpiod_direction_input(gpiod);
                ams_delta_modem_ports[0].irq = gpiod_to_irq(gpiod);
        }
 }