Skip to content

Commit

Permalink
Input: atkbd - remove unneeded synchronize_sched()
Browse files Browse the repository at this point in the history
atkbd_disable() provides all necessary synchronization with
atkbd_interrupt().

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Jan 21, 2008
1 parent b037b08 commit f0b92b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/input/keyboard/atkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,6 @@ static void atkbd_disconnect(struct serio *serio)
atkbd_disable(atkbd);

/* make sure we don't have a command in flight */
synchronize_sched(); /* Allow atkbd_interrupt()s to complete. */
flush_scheduled_work();

sysfs_remove_group(&serio->dev.kobj, &atkbd_attribute_group);
Expand Down

0 comments on commit f0b92b9

Please sign in to comment.