diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/ads7846.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index e4ee43e159d2..beb754ff931b 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
@@ -966,6 +966,13 @@ static int __devinit ads7846_setup_pendown(struct spi_device *spi, struct ads784 | |||
966 | pdata->gpio_pendown); | 966 | pdata->gpio_pendown); |
967 | return err; | 967 | return err; |
968 | } | 968 | } |
969 | err = gpio_direction_input(pdata->gpio_pendown); | ||
970 | if (err) { | ||
971 | dev_err(&spi->dev, "failed to setup pendown GPIO%d\n", | ||
972 | pdata->gpio_pendown); | ||
973 | gpio_free(pdata->gpio_pendown); | ||
974 | return err; | ||
975 | } | ||
969 | 976 | ||
970 | ts->gpio_pendown = pdata->gpio_pendown; | 977 | ts->gpio_pendown = pdata->gpio_pendown; |
971 | 978 | ||