Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183088
b: refs/heads/master
c: 361b7b5
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Jan 6, 2010
1 parent 342cbdc commit 21da565
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 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: cac9169bf75ea8cbaab75be9dbe5eb79a2bad6f5
refs/heads/master: 361b7b5b032338361ea88412f1fc45479fdd5859
6 changes: 1 addition & 5 deletions trunk/drivers/input/gameport/gameport.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,6 @@ static void gameport_add_port(struct gameport *gameport)
printk(KERN_ERR
"gameport: device_add() failed for %s (%s), error: %d\n",
gameport->phys, gameport->name, error);
else
gameport->registered = 1;
}

/*
Expand All @@ -584,10 +582,8 @@ static void gameport_destroy_port(struct gameport *gameport)
gameport->parent = NULL;
}

if (gameport->registered) {
if (device_is_registered(&gameport->dev))
device_del(&gameport->dev);
gameport->registered = 0;
}

list_del_init(&gameport->node);

Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/gameport.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ struct gameport {
struct mutex drv_mutex; /* protects serio->drv so attributes can pin driver */

struct device dev;
unsigned int registered; /* port has been fully registered with driver core */

struct list_head node;
};
Expand Down

0 comments on commit 21da565

Please sign in to comment.