提交 af045b86 编写于 作者: D Dmitry Torokhov

Input: i8042 - fix device removal on unload

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=16613Reported-by: NSeryodkin Victor <vvscore@gmail.com>
Cc: stable@kernel.org
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 57157bec
...@@ -1485,8 +1485,8 @@ static int __init i8042_init(void) ...@@ -1485,8 +1485,8 @@ static int __init i8042_init(void)
static void __exit i8042_exit(void) static void __exit i8042_exit(void)
{ {
platform_driver_unregister(&i8042_driver);
platform_device_unregister(i8042_platform_device); platform_device_unregister(i8042_platform_device);
platform_driver_unregister(&i8042_driver);
i8042_platform_exit(); i8042_platform_exit();
panic_blink = NULL; panic_blink = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册