diff options
Diffstat (limited to 'drivers/input/joystick/guillemot.c')
-rw-r--r-- | drivers/input/joystick/guillemot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/joystick/guillemot.c b/drivers/input/joystick/guillemot.c index 840ed9b512b2..dbc5d92858b8 100644 --- a/drivers/input/joystick/guillemot.c +++ b/drivers/input/joystick/guillemot.c | |||
@@ -250,7 +250,9 @@ static int guillemot_connect(struct gameport *gameport, struct gameport_driver * | |||
250 | for (i = 0; (t = guillemot->type->btn[i]) >= 0; i++) | 250 | for (i = 0; (t = guillemot->type->btn[i]) >= 0; i++) |
251 | set_bit(t, input_dev->keybit); | 251 | set_bit(t, input_dev->keybit); |
252 | 252 | ||
253 | input_register_device(guillemot->dev); | 253 | err = input_register_device(guillemot->dev); |
254 | if (err) | ||
255 | goto fail2; | ||
254 | 256 | ||
255 | return 0; | 257 | return 0; |
256 | 258 | ||