|
@@ -40,7 +40,6 @@
|
|
|
|
|
|
#include <asm/cacheflush.h>
|
|
|
|
|
|
-#include <linux/gpio.h>
|
|
|
#include <linux/gpio/consumer.h>
|
|
|
#include <linux/err.h>
|
|
|
#include <linux/irq.h>
|
|
@@ -1597,7 +1596,7 @@ static int mxs_auart_init_gpios(struct mxs_auart_port *s, struct device *dev)
|
|
|
|
|
|
for (i = 0; i < UART_GPIO_MAX; i++) {
|
|
|
gpiod = mctrl_gpio_to_gpiod(s->gpios, i);
|
|
|
- if (gpiod && (gpiod_get_direction(gpiod) == GPIOF_DIR_IN))
|
|
|
+ if (gpiod && (gpiod_get_direction(gpiod) == 1))
|
|
|
s->gpio_irq[i] = gpiod_to_irq(gpiod);
|
|
|
else
|
|
|
s->gpio_irq[i] = -EINVAL;
|