Input: i8042 - fix device removal on unload
commite9d3ad84a2b475896c74e41036ba0e8b591fac8e
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Sep 2010 00:27:02 +0000 (31 17:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:36:39 +0000 (20 13:36 -0700)
tree15eb658ac062110dbd52ffea7e2fdfb971476c90
parent964c3f00ecc7a6c789f7c9d0231ded4ab0ae1610
Input: i8042 - fix device removal on unload

commit af045b86662f17bf130239a65995c61a34f00a6b upstream.

We need to call platform_device_unregister(i8042_platform_device)
before calling platform_driver_unregister() because i8042_remove()
resets i8042_platform_device to NULL. This leaves the platform device
instance behind and prevents driver reload.

Fixes https://bugzilla.kernel.org/show_bug.cgi?id=16613

Reported-by: Seryodkin Victor <vvscore@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/serio/i8042.c