]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1eb2e10823032e5d503d8d846fbe24096765a4f
treed5a8a14d7663c6e9ad6accb33b663d7237903e09
parent7c254ef5ab0491ed267c36c23c669823db70d5d2
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