diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-04-16 08:51:52 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-04-16 08:51:52 -0700 |
commit | 0c387ec88abf4f1ddfe8c3be10ea981bc447b406 (patch) | |
tree | 7510842a16aa54e3fec96aed2b3126109cda8d85 /drivers/input/gameport/gameport.c | |
parent | ba28f22e7cf16cb310bb491cbb3f7d0d5d1f5c5d (diff) | |
parent | 3f3e7c6e139f704e2f48ea3b45ff7724a8d46456 (diff) | |
download | blackbird-op-linux-0c387ec88abf4f1ddfe8c3be10ea981bc447b406.tar.gz blackbird-op-linux-0c387ec88abf4f1ddfe8c3be10ea981bc447b406.zip |
Merge branch 'next' into for-linus
Diffstat (limited to 'drivers/input/gameport/gameport.c')
-rw-r--r-- | drivers/input/gameport/gameport.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index ebf4be5b7c4e..2d175b5928ff 100644 --- a/drivers/input/gameport/gameport.c +++ b/drivers/input/gameport/gameport.c @@ -50,9 +50,8 @@ static LIST_HEAD(gameport_list); static struct bus_type gameport_bus; -static void gameport_add_driver(struct gameport_driver *drv); static void gameport_add_port(struct gameport *gameport); -static void gameport_destroy_port(struct gameport *gameport); +static void gameport_attach_driver(struct gameport_driver *drv); static void gameport_reconnect_port(struct gameport *gameport); static void gameport_disconnect_port(struct gameport *gameport); @@ -230,7 +229,6 @@ static void gameport_find_driver(struct gameport *gameport) enum gameport_event_type { GAMEPORT_REGISTER_PORT, - GAMEPORT_REGISTER_DRIVER, GAMEPORT_ATTACH_DRIVER, }; @@ -374,8 +372,8 @@ static void gameport_handle_event(void) gameport_add_port(event->object); break; - case GAMEPORT_REGISTER_DRIVER: - gameport_add_driver(event->object); + case GAMEPORT_ATTACH_DRIVER: + gameport_attach_driver(event->object); break; default: @@ -706,14 +704,14 @@ static int gameport_driver_remove(struct device *dev) return 0; } -static void gameport_add_driver(struct gameport_driver *drv) +static void gameport_attach_driver(struct gameport_driver *drv) { int error; - error = driver_register(&drv->driver); + error = driver_attach(&drv->driver); if (error) printk(KERN_ERR - "gameport: driver_register() failed for %s, error: %d\n", + "gameport: driver_attach() failed for %s, error: %d\n", drv->driver.name, error); } |