diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-22 08:49:13 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-22 08:53:30 +0100 |
commit | 8e1b4d83cf8b0e62f5a45792d07f027783c1a07c (patch) | |
tree | 43b63f8c2430314ccb2220b671d13bc8916f4635 /drivers/input/touchscreen/bu21013_ts.c | |
parent | Input: misc - drop unnecessary calls to device_init_wakeup (diff) | |
download | linux-8e1b4d83cf8b0e62f5a45792d07f027783c1a07c.tar.xz linux-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/bu21013_ts.c')
-rw-r--r-- | drivers/input/touchscreen/bu21013_ts.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c index 931417eb4f5a..4fa5da8d5fa8 100644 --- a/drivers/input/touchscreen/bu21013_ts.c +++ b/drivers/input/touchscreen/bu21013_ts.c @@ -637,8 +637,6 @@ static int bu21013_remove(struct i2c_client *client) kfree(bu21013_data); - device_init_wakeup(&client->dev, false); - return 0; } |