Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346977
b: refs/heads/master
c: 333e34b
h: refs/heads/master
i:
  346975: 4ab5a43
v: v3
  • Loading branch information
Dmitry Torokhov committed Dec 4, 2012
1 parent 3407bfc commit ef0c971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a22e16fc3d6abc8d6323cc0973435439932fe5f
refs/heads/master: 333e34bfe2149e634fb0613b4936fd838c36fafb
10 changes: 1 addition & 9 deletions trunk/drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,21 +440,13 @@ static int gpio_keys_setup_key(struct platform_device *pdev,

if (gpio_is_valid(button->gpio)) {

error = gpio_request(button->gpio, desc);
error = gpio_request_one(button->gpio, GPIOF_IN, desc);
if (error < 0) {
dev_err(dev, "Failed to request GPIO %d, error %d\n",
button->gpio, error);
return error;
}

error = gpio_direction_input(button->gpio);
if (error < 0) {
dev_err(dev,
"Failed to configure direction for GPIO %d, error %d\n",
button->gpio, error);
goto fail;
}

if (button->debounce_interval) {
error = gpio_set_debounce(button->gpio,
button->debounce_interval * 1000);
Expand Down

0 comments on commit ef0c971

Please sign in to comment.