summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2018-10-09 10:45:32 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-12-13 12:43:57 +0100
commite5115e4d6fa0390c722ee15ff87f18c88bd7bcb0 (patch)
treecd22c4656171ccbc3a86c8f7139e887807e81a7f /drivers/input/touchscreen
parenta2748b5ac80cfab7e65cf41018b13c356f2d2b61 (diff)
Revert "input: atmel_mxt_ts: support reset gpio line"
This reverts commit c6f9bbccf346902d77628534a7d0491cbb77c16b.
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 9d3877288f93..be2f2521c1c5 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -26,7 +26,6 @@
#include <linux/input/mt.h>
#include <linux/interrupt.h>
#include <linux/of.h>
-#include <linux/of_gpio.h>
#include <linux/slab.h>
#include <asm/unaligned.h>
@@ -2430,8 +2429,6 @@ static const struct mxt_platform_data *mxt_parse_dt(struct i2c_client *client)
if (!pdata)
return ERR_PTR(-ENOMEM);
- pdata->gpio_reset = of_get_named_gpio(np, "reset-gpio", 0);
-
if (of_find_property(np, "linux,gpio-keymap", &proplen)) {
pdata->t19_num_keys = proplen / sizeof(u32);
@@ -2650,21 +2647,6 @@ static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id)
goto err_free_mem;
}
- if (pdata->gpio_reset >= 0) {
- error = gpio_request(pdata->gpio_reset, "atmel-mxt-ts-reset");
- if (error < 0 ) {
- dev_err(&client->dev, "Failure %d requesting reset "
- "gpio\n", error);
- goto err_free_mem;
- }
- error = gpio_direction_output(pdata->gpio_reset, 1);
- if (error < 0 ) {
- dev_err(&client->dev, "Failure %d setting reset gpio"
- "direction\n", error);
- goto err_free_gpio;
- }
- }
-
disable_irq(client->irq);
error = mxt_initialize(data);
@@ -2685,9 +2667,6 @@ err_free_object:
mxt_free_object_table(data);
err_free_irq:
free_irq(client->irq, data);
-err_free_gpio:
- if (pdata->gpio_reset >= 0)
- gpio_free(pdata->gpio_reset);
err_free_mem:
kfree(data);
return error;
@@ -2699,8 +2678,6 @@ static int mxt_remove(struct i2c_client *client)
sysfs_remove_group(&client->dev.kobj, &mxt_attr_group);
free_irq(data->irq, data);
- if (data->pdata->gpio_reset >= 0)
- gpio_free(data->pdata->gpio_reset);
mxt_free_input_device(data);
mxt_free_object_table(data);
kfree(data);