Commit 74af42bb authored by Kurt Garloff's avatar Kurt Garloff Committed by Dmitry Torokhov

Input: Avoid double unregistering of i8042 PnP driver. This can happen

       when no i8042 controller (not PnP, not legacy) is present.

From: Kurt Garloff <garloff@suse.de>
Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 5a72afc0
...@@ -215,11 +215,15 @@ static struct pnp_driver i8042_pnp_aux_driver = { ...@@ -215,11 +215,15 @@ static struct pnp_driver i8042_pnp_aux_driver = {
static void i8042_pnp_exit(void) static void i8042_pnp_exit(void)
{ {
if (i8042_pnp_kbd_registered) if (i8042_pnp_kbd_registered) {
i8042_pnp_kbd_registered = 0;
pnp_unregister_driver(&i8042_pnp_kbd_driver); pnp_unregister_driver(&i8042_pnp_kbd_driver);
}
if (i8042_pnp_aux_registered) if (i8042_pnp_aux_registered) {
i8042_pnp_aux_registered = 0;
pnp_unregister_driver(&i8042_pnp_aux_driver); pnp_unregister_driver(&i8042_pnp_aux_driver);
}
} }
static int i8042_pnp_init(void) static int i8042_pnp_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment