Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250509
b: refs/heads/master
c: 1201e7e
h: refs/heads/master
i:
  250507: 7d840b6
v: v3
  • Loading branch information
Igor Grinberg authored and Dmitry Torokhov committed May 12, 2011
1 parent 847be5d commit 8a981a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebcaaad9d5e8fd284b8dcf25a24999420f0f56d8
refs/heads/master: 1201e7e67634624aec89317cf308cd0d3d8d4770
7 changes: 7 additions & 0 deletions trunk/drivers/input/touchscreen/ads7846.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,13 @@ static int __devinit ads7846_setup_pendown(struct spi_device *spi, struct ads784
pdata->gpio_pendown);
return err;
}
err = gpio_direction_input(pdata->gpio_pendown);
if (err) {
dev_err(&spi->dev, "failed to setup pendown GPIO%d\n",
pdata->gpio_pendown);
gpio_free(pdata->gpio_pendown);
return err;
}

ts->gpio_pendown = pdata->gpio_pendown;

Expand Down

0 comments on commit 8a981a7

Please sign in to comment.