Commit 16c561f7 authored by Vojtech Pavlik's avatar Vojtech Pavlik

Fix i8042 for Sun, recent updates broke it.

parent d3ca7378
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#include <linux/serio.h> #include <linux/serio.h>
#include <linux/sched.h> #include <linux/sched.h>
#undef DEBUG
#include "i8042.h"
MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>"); MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>");
MODULE_DESCRIPTION("i8042 keyboard and mouse controller driver"); MODULE_DESCRIPTION("i8042 keyboard and mouse controller driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -41,6 +37,9 @@ static int i8042_reset; ...@@ -41,6 +37,9 @@ static int i8042_reset;
static int i8042_direct; static int i8042_direct;
static int i8042_dumbkbd; static int i8042_dumbkbd;
#undef DEBUG
#include "i8042.h"
spinlock_t i8042_lock = SPIN_LOCK_UNLOCKED; spinlock_t i8042_lock = SPIN_LOCK_UNLOCKED;
struct i8042_values { struct i8042_values {
...@@ -287,7 +286,6 @@ static void i8042_close(struct serio *port) ...@@ -287,7 +286,6 @@ 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,
.irqen = I8042_CTR_KBDINT, .irqen = I8042_CTR_KBDINT,
.disable = I8042_CTR_KBDDIS, .disable = I8042_CTR_KBDDIS,
.name = "KBD", .name = "KBD",
...@@ -306,7 +304,6 @@ static struct serio i8042_kbd_port = ...@@ -306,7 +304,6 @@ static struct serio i8042_kbd_port =
}; };
static struct i8042_values i8042_aux_values = { static struct i8042_values i8042_aux_values = {
.irq = I8042_AUX_IRQ,
.irqen = I8042_CTR_AUXINT, .irqen = I8042_CTR_AUXINT,
.disable = I8042_CTR_AUXDIS, .disable = I8042_CTR_AUXDIS,
.name = "AUX", .name = "AUX",
...@@ -812,6 +809,9 @@ int __init i8042_init(void) ...@@ -812,6 +809,9 @@ int __init i8042_init(void)
if (i8042_platform_init()) if (i8042_platform_init())
return -EBUSY; return -EBUSY;
i8042_aux_values.irq = I8042_AUX_IRQ;
i8042_kbd_values.irq = I8042_KBD_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