diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-22 10:48:45 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-22 10:53:21 +0300 |
commit | 56580c2cb7d72e2176136b8146bcc6a527d8ac38 (patch) | |
tree | d5a8a14d7663c6e9ad6accb33b663d7237903e09 /drivers/input/misc/88pm80x_onkey.c | |
parent | de3a00ef21d6e803ee7c674c76a269016a1b308c (diff) | |
download | linux-56580c2cb7d72e2176136b8146bcc6a527d8ac38.tar.xz |
Input: misc - 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/misc/88pm80x_onkey.c')
-rw-r--r-- | drivers/input/misc/88pm80x_onkey.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/88pm80x_onkey.c b/drivers/input/misc/88pm80x_onkey.c index cf9908f1e5d5..45a09497f680 100644 --- a/drivers/input/misc/88pm80x_onkey.c +++ b/drivers/input/misc/88pm80x_onkey.c @@ -143,7 +143,6 @@ static int pm80x_onkey_remove(struct platform_device *pdev) { struct pm80x_onkey_info *info = platform_get_drvdata(pdev); - device_init_wakeup(&pdev->dev, 0); pm80x_free_irq(info->pm80x, info->irq, info); input_unregister_device(info->idev); kfree(info); |