diff options
Diffstat (limited to 'drivers/input/joystick/spaceorb.c')
-rw-r--r-- | drivers/input/joystick/spaceorb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/joystick/spaceorb.c b/drivers/input/joystick/spaceorb.c index 3e2782e79834..c4db0247c5fb 100644 --- a/drivers/input/joystick/spaceorb.c +++ b/drivers/input/joystick/spaceorb.c | |||
@@ -74,7 +74,7 @@ static unsigned char *spaceorb_errors[] = { "EEPROM storing 0 failed", "Receive | |||
74 | * SpaceOrb. | 74 | * SpaceOrb. |
75 | */ | 75 | */ |
76 | 76 | ||
77 | static void spaceorb_process_packet(struct spaceorb *spaceorb, struct pt_regs *regs) | 77 | static void spaceorb_process_packet(struct spaceorb *spaceorb) |
78 | { | 78 | { |
79 | struct input_dev *dev = spaceorb->dev; | 79 | struct input_dev *dev = spaceorb->dev; |
80 | unsigned char *data = spaceorb->data; | 80 | unsigned char *data = spaceorb->data; |
@@ -86,8 +86,6 @@ static void spaceorb_process_packet(struct spaceorb *spaceorb, struct pt_regs *r | |||
86 | for (i = 0; i < spaceorb->idx; i++) c ^= data[i]; | 86 | for (i = 0; i < spaceorb->idx; i++) c ^= data[i]; |
87 | if (c) return; | 87 | if (c) return; |
88 | 88 | ||
89 | input_regs(dev, regs); | ||
90 | |||
91 | switch (data[0]) { | 89 | switch (data[0]) { |
92 | 90 | ||
93 | case 'R': /* Reset packet */ | 91 | case 'R': /* Reset packet */ |
@@ -131,12 +129,12 @@ static void spaceorb_process_packet(struct spaceorb *spaceorb, struct pt_regs *r | |||
131 | } | 129 | } |
132 | 130 | ||
133 | static irqreturn_t spaceorb_interrupt(struct serio *serio, | 131 | static irqreturn_t spaceorb_interrupt(struct serio *serio, |
134 | unsigned char data, unsigned int flags, struct pt_regs *regs) | 132 | unsigned char data, unsigned int flags) |
135 | { | 133 | { |
136 | struct spaceorb* spaceorb = serio_get_drvdata(serio); | 134 | struct spaceorb* spaceorb = serio_get_drvdata(serio); |
137 | 135 | ||
138 | if (~data & 0x80) { | 136 | if (~data & 0x80) { |
139 | if (spaceorb->idx) spaceorb_process_packet(spaceorb, regs); | 137 | if (spaceorb->idx) spaceorb_process_packet(spaceorb); |
140 | spaceorb->idx = 0; | 138 | spaceorb->idx = 0; |
141 | } | 139 | } |
142 | if (spaceorb->idx < SPACEORB_MAX_LENGTH) | 140 | if (spaceorb->idx < SPACEORB_MAX_LENGTH) |