Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346978
b: refs/heads/master
c: da5ee07
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Dec 4, 2012
1 parent ef0c971 commit b0e6a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 333e34bfe2149e634fb0613b4936fd838c36fafb
refs/heads/master: da5ee074ce8e07b9a91596de3576b59990c0c8c6
12 changes: 2 additions & 10 deletions trunk/drivers/input/keyboard/gpio_keys_polled.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,22 +270,14 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
goto err_free_gpio;
}

error = gpio_request(gpio,
button->desc ? button->desc : DRV_NAME);
error = gpio_request_one(gpio, GPIOF_IN,
button->desc ?: DRV_NAME);
if (error) {
dev_err(dev, "unable to claim gpio %u, err=%d\n",
gpio, error);
goto err_free_gpio;
}

error = gpio_direction_input(gpio);
if (error) {
dev_err(dev,
"unable to set direction on gpio %u, err=%d\n",
gpio, error);
goto err_free_gpio;
}

bdata->can_sleep = gpio_cansleep(gpio);
bdata->last_state = -1;
bdata->threshold = DIV_ROUND_UP(button->debounce_interval,
Expand Down

0 comments on commit b0e6a2e

Please sign in to comment.