Input: serio - remove pending events when unregistering driver
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 2 Jun 2008 04:41:57 +0000 (00:41 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 2 Jun 2008 04:41:57 +0000 (00:41 -0400)
commite8ef4347099584b49ecf74144ad2089b724292cf
tree2dd76225570d3f6d64785e588cf8f64454e59739
parentf6d65610df3bd4e7138da03aec391224219df135
Input: serio - remove pending events when unregistering driver

That fixes an opps when driver is repeatedly loaded and unloaded in
a tight loop.

Tested-by: Roland Kletzing <devzero@web.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/serio.c