]> err.no Git - linux-2.6/commitdiff
Input: atkbd - remove unneeded synchronize_sched()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 4 Nov 2007 04:42:21 +0000 (00:42 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Jan 2008 06:11:06 +0000 (01:11 -0500)
atkbd_disable() provides all necessary synchronization with
atkbd_interrupt().

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/atkbd.c

index 7162f79ea119fabd935a93f011d7459eadbe2b0f..514d80badc4064e3a1461c61b6fef9ab6c237b00 100644 (file)
@@ -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);