diff options
| -rw-r--r-- | drivers/input/keyboard/gpio_keys_polled.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c index 097d7216d98e..c6dc644aa580 100644 --- a/drivers/input/keyboard/gpio_keys_polled.c +++ b/drivers/input/keyboard/gpio_keys_polled.c | |||
| @@ -246,7 +246,7 @@ static int gpio_keys_polled_probe(struct platform_device *pdev) | |||
| 246 | * convert it to descriptor. | 246 | * convert it to descriptor. |
| 247 | */ | 247 | */ |
| 248 | if (!button->gpiod && gpio_is_valid(button->gpio)) { | 248 | if (!button->gpiod && gpio_is_valid(button->gpio)) { |
| 249 | unsigned flags = 0; | 249 | unsigned flags = GPIOF_IN; |
| 250 | 250 | ||
| 251 | if (button->active_low) | 251 | if (button->active_low) |
| 252 | flags |= GPIOF_ACTIVE_LOW; | 252 | flags |= GPIOF_ACTIVE_LOW; |
