diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-22 08:48:45 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-22 08:53:21 +0100 |
commit | 56580c2cb7d72e2176136b8146bcc6a527d8ac38 (patch) | |
tree | d5a8a14d7663c6e9ad6accb33b663d7237903e09 /drivers/input/misc/pmic8xxx-pwrkey.c | |
parent | Input: keyboard - drop unnecessary calls to device_init_wakeup (diff) | |
download | linux-56580c2cb7d72e2176136b8146bcc6a527d8ac38.tar.xz linux-56580c2cb7d72e2176136b8146bcc6a527d8ac38.zip |
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/pmic8xxx-pwrkey.c')
-rw-r--r-- | drivers/input/misc/pmic8xxx-pwrkey.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/misc/pmic8xxx-pwrkey.c b/drivers/input/misc/pmic8xxx-pwrkey.c index 67aab86048ad..c75be2dd00e7 100644 --- a/drivers/input/misc/pmic8xxx-pwrkey.c +++ b/drivers/input/misc/pmic8xxx-pwrkey.c @@ -440,8 +440,6 @@ static int pmic8xxx_pwrkey_probe(struct platform_device *pdev) static int pmic8xxx_pwrkey_remove(struct platform_device *pdev) { - device_init_wakeup(&pdev->dev, 0); - return 0; } |