Merge branch 'next' into for-linus
[cascardo/linux.git] / drivers / input / keyboard / gpio_keys_polled.c
index 5a0c999..870cfa6 100644 (file)
@@ -249,7 +249,7 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
                 * convert it to descriptor.
                 */
                if (!button->gpiod && gpio_is_valid(button->gpio)) {
-                       unsigned flags = 0;
+                       unsigned flags = GPIOF_IN;
 
                        if (button->active_low)
                                flags |= GPIOF_ACTIVE_LOW;