diff options
Diffstat (limited to 'drivers/input/joystick/spaceball.c')
-rw-r--r-- | drivers/input/joystick/spaceball.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/joystick/spaceball.c b/drivers/input/joystick/spaceball.c index 7a19ee052972..2a9808cf826f 100644 --- a/drivers/input/joystick/spaceball.c +++ b/drivers/input/joystick/spaceball.c | |||
@@ -82,7 +82,7 @@ struct spaceball { | |||
82 | * SpaceBall. | 82 | * SpaceBall. |
83 | */ | 83 | */ |
84 | 84 | ||
85 | static void spaceball_process_packet(struct spaceball* spaceball, struct pt_regs *regs) | 85 | static void spaceball_process_packet(struct spaceball* spaceball) |
86 | { | 86 | { |
87 | struct input_dev *dev = spaceball->dev; | 87 | struct input_dev *dev = spaceball->dev; |
88 | unsigned char *data = spaceball->data; | 88 | unsigned char *data = spaceball->data; |
@@ -90,8 +90,6 @@ static void spaceball_process_packet(struct spaceball* spaceball, struct pt_regs | |||
90 | 90 | ||
91 | if (spaceball->idx < 2) return; | 91 | if (spaceball->idx < 2) return; |
92 | 92 | ||
93 | input_regs(dev, regs); | ||
94 | |||
95 | switch (spaceball->data[0]) { | 93 | switch (spaceball->data[0]) { |
96 | 94 | ||
97 | case 'D': /* Ball data */ | 95 | case 'D': /* Ball data */ |
@@ -151,13 +149,13 @@ static void spaceball_process_packet(struct spaceball* spaceball, struct pt_regs | |||
151 | */ | 149 | */ |
152 | 150 | ||
153 | static irqreturn_t spaceball_interrupt(struct serio *serio, | 151 | static irqreturn_t spaceball_interrupt(struct serio *serio, |
154 | unsigned char data, unsigned int flags, struct pt_regs *regs) | 152 | unsigned char data, unsigned int flags) |
155 | { | 153 | { |
156 | struct spaceball *spaceball = serio_get_drvdata(serio); | 154 | struct spaceball *spaceball = serio_get_drvdata(serio); |
157 | 155 | ||
158 | switch (data) { | 156 | switch (data) { |
159 | case 0xd: | 157 | case 0xd: |
160 | spaceball_process_packet(spaceball, regs); | 158 | spaceball_process_packet(spaceball); |
161 | spaceball->idx = 0; | 159 | spaceball->idx = 0; |
162 | spaceball->escape = 0; | 160 | spaceball->escape = 0; |
163 | break; | 161 | break; |