aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpiolib-legacy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-legacy.c b/drivers/gpio/gpiolib-legacy.c
index eb5a4e2cee85..c684d94cdbb4 100644
--- a/drivers/gpio/gpiolib-legacy.c
+++ b/drivers/gpio/gpiolib-legacy.c
@@ -34,6 +34,9 @@ int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)
34 if (flags & GPIOF_OPEN_SOURCE) 34 if (flags & GPIOF_OPEN_SOURCE)
35 set_bit(FLAG_OPEN_SOURCE, &desc->flags); 35 set_bit(FLAG_OPEN_SOURCE, &desc->flags);
36 36
37 if (flags & GPIOF_ACTIVE_LOW)
38 set_bit(FLAG_ACTIVE_LOW, &desc->flags);
39
37 if (flags & GPIOF_DIR_IN) 40 if (flags & GPIOF_DIR_IN)
38 err = gpiod_direction_input(desc); 41 err = gpiod_direction_input(desc);
39 else 42 else