Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39666
b: refs/heads/master
c: b187dd7
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Nov 3, 2006
1 parent fda3850 commit e3c313d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 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: 1ea2a69d54f40ecebf594ce5abfa02d53682df8a
refs/heads/master: b187dd7b5231bb359f587bf4d276ffd467ebc884
19 changes: 9 additions & 10 deletions trunk/drivers/input/gameport/gameport.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,12 +730,6 @@ 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,
};

static void gameport_add_driver(struct gameport_driver *drv)
{
int error;
Expand Down Expand Up @@ -781,6 +775,15 @@ static int gameport_bus_match(struct device *dev, struct device_driver *drv)
return !gameport_drv->ignore;
}

static struct bus_type gameport_bus = {
.name = "gameport",
.dev_attrs = gameport_device_attrs,
.drv_attrs = gameport_driver_attrs,
.match = gameport_bus_match,
.probe = gameport_driver_probe,
.remove = gameport_driver_remove,
};

static void gameport_set_drv(struct gameport *gameport, struct gameport_driver *drv)
{
mutex_lock(&gameport->drv_mutex);
Expand All @@ -790,7 +793,6 @@ static void gameport_set_drv(struct gameport *gameport, struct gameport_driver *

int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode)
{

if (gameport->open) {
if (gameport->open(gameport, mode)) {
return -1;
Expand Down Expand Up @@ -818,9 +820,6 @@ static int __init gameport_init(void)
{
int error;

gameport_bus.dev_attrs = gameport_device_attrs;
gameport_bus.drv_attrs = gameport_driver_attrs;
gameport_bus.match = gameport_bus_match;
error = bus_register(&gameport_bus);
if (error) {
printk(KERN_ERR "gameport: failed to register gameport bus, error: %d\n", error);
Expand Down

0 comments on commit e3c313d

Please sign in to comment.