Commit 9971f915 authored by Vojtech Pavlik's avatar Vojtech Pavlik

Unregister an AUX/KBD port if the interrupt cannot be ever claimed.

parent 40a302c2
...@@ -270,7 +270,9 @@ static int i8042_open(struct serio *port) ...@@ -270,7 +270,9 @@ static int i8042_open(struct serio *port)
*/ */
if (request_irq(values->irq, i8042_interrupt, 0, "i8042", NULL)) { if (request_irq(values->irq, i8042_interrupt, 0, "i8042", NULL)) {
printk(KERN_ERR "i8042.c: Can't get irq %d for %s\n", values->irq, values->name); printk(KERN_ERR "i8042.c: Can't get irq %d for %s, unregistering the port.\n", values->irq, values->name);
values->exists = 0;
serio_unregister_port(port);
return -1; return -1;
} }
......
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