Input: wacom - properly enable runtime PM
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 10 Oct 2010 21:24:16 +0000 (14:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 18 Oct 2010 04:20:46 +0000 (21:20 -0700)
commit62ecae09a01df507ef52e1bc90fc233a1978c60a
tree0452f78a77dfb6a14c0cdda6e59f11b16b0f4317
parent3136baf8d09458bb04332b81494fd13ad90fe94a
Input: wacom - properly enable runtime PM

We need to always call usb_autopm_put_interface() in wacom_open(),
not only when initialization fails, otherwise the device will be
marked as PM-busy and will never be put in suspended state.

Based on patch by Oliver Neukum.

Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/wacom_sys.c