Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19294
b: refs/heads/master
c: 07cf779
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Jan 30, 2006
1 parent 7a4ee18 commit 4ab1171
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 847fd5fbf70e82baf042556968f885066489b164
refs/heads/master: 07cf779c0098fd0007d2348e1cf948cc07bfe096
8 changes: 6 additions & 2 deletions trunk/drivers/input/joystick/sidewinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,12 +771,15 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)

dbg("%s%s [%d-bit id %d data %d]\n", sw->name, comment, m, l, k);

input_register_device(sw->dev[i]);
err = input_register_device(sw->dev[i]);
if (err)
goto fail4;
}

return 0;

fail3: while (--i >= 0)
fail4: input_free_device(sw->dev[i]);
fail3: while (--i >= 0)
input_unregister_device(sw->dev[i]);
fail2: gameport_close(gameport);
fail1: gameport_set_drvdata(gameport, NULL);
Expand All @@ -801,6 +804,7 @@ static void sw_disconnect(struct gameport *gameport)
static struct gameport_driver sw_drv = {
.driver = {
.name = "sidewinder",
.owner = THIS_MODULE,
},
.description = DRIVER_DESC,
.connect = sw_connect,
Expand Down

0 comments on commit 4ab1171

Please sign in to comment.