Commit 66fd9385 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: wacom_w8001 - simplify w8001_remove

Since touchscreen driver does not handle any events to be sent to the
device we can close serio port first and then unregister the input device.
Tested-by: default avatarPing Cheng <pingc@wacom.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e9496746
...@@ -499,12 +499,12 @@ static void w8001_disconnect(struct serio *serio) ...@@ -499,12 +499,12 @@ static void w8001_disconnect(struct serio *serio)
{ {
struct w8001 *w8001 = serio_get_drvdata(serio); struct w8001 *w8001 = serio_get_drvdata(serio);
input_get_device(w8001->dev);
input_unregister_device(w8001->dev);
serio_close(serio); serio_close(serio);
serio_set_drvdata(serio, NULL);
input_put_device(w8001->dev); input_unregister_device(w8001->dev);
kfree(w8001); kfree(w8001);
serio_set_drvdata(serio, NULL);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment