]> Git Repo - linux.git/blobdiff - drivers/gpio/gpio-aspeed.c
thp: fix MADV_DONTNEED vs. MADV_FREE race
[linux.git] / drivers / gpio / gpio-aspeed.c
index 6e4b278a82f1e8bc602de52556f70a33a0130992..fb16cc771c0ddfd88f8b51ad321f59c6601200eb 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/spinlock.h>
 #include <linux/platform_device.h>
-#include <linux/gpio.h>
 #include <linux/gpio/driver.h>
 #include <linux/pinctrl/consumer.h>
 
@@ -259,10 +258,10 @@ static int aspeed_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
        u32 val;
 
        if (!have_input(gpio, offset))
-               return GPIOF_DIR_OUT;
+               return 0;
 
        if (!have_output(gpio, offset))
-               return GPIOF_DIR_IN;
+               return 1;
 
        spin_lock_irqsave(&gpio->lock, flags);
 
This page took 0.035549 seconds and 4 git commands to generate.