summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/st1232.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-21 23:49:13 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-21 23:53:30 -0800
commit8e1b4d83cf8b0e62f5a45792d07f027783c1a07c (patch)
tree43b63f8c2430314ccb2220b671d13bc8916f4635 /drivers/input/touchscreen/st1232.c
parent56580c2cb7d72e2176136b8146bcc6a527d8ac38 (diff)
downloadlwn-8e1b4d83cf8b0e62f5a45792d07f027783c1a07c.tar.gz
lwn-8e1b4d83cf8b0e62f5a45792d07f027783c1a07c.zip
Input: touchscreen - drop unnecessary calls to device_init_wakeup
Calling device_init_wakeup in the remove function is unnecessary since the device is going away, and thus won't be able to cause any wakeups under any circumstances. Besides, the driver cleanup code already handles the necessary cleanup. Similarly, disabling wakeup in the probe error path is unnecessary, as is disabling wakeup in the probe function in the first place. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/st1232.c')
-rw-r--r--drivers/input/touchscreen/st1232.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index e943678ce54c..be5615c6bf8f 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -237,7 +237,6 @@ static int st1232_ts_remove(struct i2c_client *client)
{
struct st1232_ts_data *ts = i2c_get_clientdata(client);
- device_init_wakeup(&client->dev, 0);
st1232_ts_power(ts, false);
return 0;