Commit f0b92b96 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: atkbd - remove unneeded synchronize_sched()

atkbd_disable() provides all necessary synchronization with
atkbd_interrupt().
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent b037b08e
...@@ -823,7 +823,6 @@ static void atkbd_disconnect(struct serio *serio) ...@@ -823,7 +823,6 @@ static void atkbd_disconnect(struct serio *serio)
atkbd_disable(atkbd); atkbd_disable(atkbd);
/* make sure we don't have a command in flight */ /* make sure we don't have a command in flight */
synchronize_sched(); /* Allow atkbd_interrupt()s to complete. */
flush_scheduled_work(); flush_scheduled_work();
sysfs_remove_group(&serio->dev.kobj, &atkbd_attribute_group); sysfs_remove_group(&serio->dev.kobj, &atkbd_attribute_group);
......
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