Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18386
b: refs/heads/master
c: 29a4a20
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Greg Kroah-Hartman committed Jan 13, 2006
1 parent 8c130a0 commit a16ff04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: b864c7d5d17c171c4ead0791b44ab05d7a21dc0c
refs/heads/master: 29a4a20e9fe7459f9d464b8be070ce8b7335be7e
12 changes: 7 additions & 5 deletions trunk/drivers/input/gameport/gameport.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ static DECLARE_MUTEX(gameport_sem);

static LIST_HEAD(gameport_list);

static struct bus_type gameport_bus = {
.name = "gameport",
};
static struct bus_type gameport_bus;

static void gameport_add_port(struct gameport *gameport);
static void gameport_destroy_port(struct gameport *gameport);
Expand Down Expand Up @@ -703,11 +701,15 @@ static int gameport_driver_remove(struct device *dev)
return 0;
}

static struct bus_type gameport_bus = {
.name = "gameport",
.probe = gameport_driver_probe,
.remove = gameport_driver_remove,
};

void __gameport_register_driver(struct gameport_driver *drv, struct module *owner)
{
drv->driver.bus = &gameport_bus;
drv->driver.probe = gameport_driver_probe;
drv->driver.remove = gameport_driver_remove;
gameport_queue_event(drv, owner, GAMEPORT_REGISTER_DRIVER);
}

Expand Down

0 comments on commit a16ff04

Please sign in to comment.