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>
This commit is contained in:

committed by
Dmitry Torokhov

parent
56580c2cb7
commit
8e1b4d83cf
@@ -231,7 +231,6 @@ static int eeti_ts_probe(struct i2c_client *client,
|
||||
*/
|
||||
eeti_ts_stop(priv);
|
||||
|
||||
device_init_wakeup(&client->dev, 0);
|
||||
return 0;
|
||||
|
||||
err3:
|
||||
|
Reference in New Issue
Block a user