diff options
Diffstat (limited to 'drivers/input/serio')
-rw-r--r-- | drivers/input/serio/i8042-x86ia64io.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index 819e47754dab..f4c5f7745422 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h | |||
@@ -215,11 +215,15 @@ static struct pnp_driver i8042_pnp_aux_driver = { | |||
215 | 215 | ||
216 | static void i8042_pnp_exit(void) | 216 | static void i8042_pnp_exit(void) |
217 | { | 217 | { |
218 | if (i8042_pnp_kbd_registered) | 218 | if (i8042_pnp_kbd_registered) { |
219 | i8042_pnp_kbd_registered = 0; | ||
219 | pnp_unregister_driver(&i8042_pnp_kbd_driver); | 220 | pnp_unregister_driver(&i8042_pnp_kbd_driver); |
221 | } | ||
220 | 222 | ||
221 | if (i8042_pnp_aux_registered) | 223 | if (i8042_pnp_aux_registered) { |
224 | i8042_pnp_aux_registered = 0; | ||
222 | pnp_unregister_driver(&i8042_pnp_aux_driver); | 225 | pnp_unregister_driver(&i8042_pnp_aux_driver); |
226 | } | ||
223 | } | 227 | } |
224 | 228 | ||
225 | static int i8042_pnp_init(void) | 229 | static int i8042_pnp_init(void) |