Input: atkbd - fix canceling event_work in disconnect
commit0ef7a26af1278f7ec0b718148e88f01ba1953835
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 Jan 2010 01:56:02 +0000 (5 17:56 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 Jan 2010 08:16:14 +0000 (6 00:16 -0800)
treed62caa3387e9ed30051e764feacc96a15172e626
parent59b015133cd0034f5904a76969d73476380aac46
Input: atkbd - fix canceling event_work in disconnect

We need to first unregister input device and only then cancel event work
since events can arrive (and cause event work to get scheduled again)
until input_unregister_device() returns.

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