From: Dmitry Torokhov Date: Sun, 4 Nov 2007 04:42:21 +0000 (-0400) Subject: Input: atkbd - remove unneeded synchronize_sched() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f0b92b961b222fa1012058a773dfca1c5f21a498;p=linux-beck.git Input: atkbd - remove unneeded synchronize_sched() atkbd_disable() provides all necessary synchronization with atkbd_interrupt(). Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index 7162f79ea119..514d80badc40 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c @@ -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);