Commit dace108b authored by David S. Miller's avatar David S. Miller

drivers/input/serio/i8042.c: Allow IRQs to be determined at runtime.

parent 545280fd
...@@ -299,7 +299,7 @@ static void i8042_close(struct serio *port) ...@@ -299,7 +299,7 @@ static void i8042_close(struct serio *port)
*/ */
static struct i8042_values i8042_kbd_values = { static struct i8042_values i8042_kbd_values = {
.irq = I8042_KBD_IRQ, .irq = 0,
.irqen = I8042_CTR_KBDINT, .irqen = I8042_CTR_KBDINT,
.disable = I8042_CTR_KBDDIS, .disable = I8042_CTR_KBDDIS,
.name = "KBD", .name = "KBD",
...@@ -318,7 +318,7 @@ static struct serio i8042_kbd_port = ...@@ -318,7 +318,7 @@ static struct serio i8042_kbd_port =
}; };
static struct i8042_values i8042_aux_values = { static struct i8042_values i8042_aux_values = {
.irq = I8042_AUX_IRQ, .irq = 0,
.irqen = I8042_CTR_AUXINT, .irqen = I8042_CTR_AUXINT,
.disable = I8042_CTR_AUXDIS, .disable = I8042_CTR_AUXDIS,
.name = "AUX", .name = "AUX",
...@@ -638,8 +638,11 @@ static int __init i8042_port_register(struct i8042_values *values, struct serio ...@@ -638,8 +638,11 @@ static int __init i8042_port_register(struct i8042_values *values, struct serio
serio_register_port(port); serio_register_port(port);
printk(KERN_INFO "serio: i8042 %s port at %#x,%#x irq %d\n", printk(KERN_INFO "serio: i8042 %s port at %#lx,%#lx irq %d\n",
values->name, I8042_DATA_REG, I8042_COMMAND_REG, values->irq); values->name,
(unsigned long) I8042_DATA_REG,
(unsigned long) I8042_COMMAND_REG,
values->irq);
return 0; return 0;
} }
...@@ -717,6 +720,9 @@ int __init i8042_init(void) ...@@ -717,6 +720,9 @@ int __init i8042_init(void)
if (!i8042_platform_init()) if (!i8042_platform_init())
return -EBUSY; return -EBUSY;
i8042_kbd_values.irq = I8042_KBD_IRQ;
i8042_aux_values.irq = I8042_AUX_IRQ;
if (i8042_controller_init()) if (i8042_controller_init())
return -ENODEV; return -ENODEV;
......
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