]> git.baikalelectronics.ru Git - kernel.git/commit
Input: serio - drop unnecessary calls to device_init_wakeup
authorGuenter Roeck <linux@roeck-us.net>
Sun, 22 Jan 2017 07:49:38 +0000 (23:49 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 07:53:32 +0000 (23:53 -0800)
commitd4b5db42dd12d3d385db9f7eef40d615ea23e9e9
treea4db556da65767c29ac12cfe366cf46c2948fafc
parentcf29bcf70b4bf276dfe221841c40df0979e5d0a4
Input: serio - 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/serio/hyperv-keyboard.c