Input: misc - drop unnecessary calls to device_init_wakeup
authorGuenter Roeck <linux@roeck-us.net>
Sun, 22 Jan 2017 07:48:45 +0000 (23:48 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 07:53:21 +0000 (23:53 -0800)
commit56580c2cb7d72e2176136b8146bcc6a527d8ac38
treed5a8a14d7663c6e9ad6accb33b663d7237903e09
parentde3a00ef21d6e803ee7c674c76a269016a1b308c
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>
drivers/input/misc/88pm80x_onkey.c
drivers/input/misc/e3x0-button.c
drivers/input/misc/gp2ap002a00f.c
drivers/input/misc/hisi_powerkey.c
drivers/input/misc/pm8941-pwrkey.c
drivers/input/misc/pmic8xxx-pwrkey.c
drivers/input/misc/sirfsoc-onkey.c