mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 06:41:43 +00:00
Input: penmount - simplify unregister procedure
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: John Sung <penmount.touch@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
98b013eb7a
commit
c3a01ba9e4
@ -183,12 +183,12 @@ static void pm_disconnect(struct serio *serio)
|
||||
{
|
||||
struct pm *pm = serio_get_drvdata(serio);
|
||||
|
||||
input_get_device(pm->dev);
|
||||
input_unregister_device(pm->dev);
|
||||
serio_close(serio);
|
||||
serio_set_drvdata(serio, NULL);
|
||||
input_put_device(pm->dev);
|
||||
|
||||
input_unregister_device(pm->dev);
|
||||
kfree(pm);
|
||||
|
||||
serio_set_drvdata(serio, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user