diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-04 08:52:27 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-04 18:25:44 +0200 |
commit | 98a84131926ebafe868c65631b69d4912922211e (patch) | |
tree | 1f14309be518ea679b8c963e689718b21355e466 /drivers/input/joystick/a3d.c | |
parent | Input: gameport - add helper macro for gameport_driver boilerplate (diff) | |
download | linux-98a84131926ebafe868c65631b69d4912922211e.tar.xz linux-98a84131926ebafe868c65631b69d4912922211e.zip |
Input: gameport - use module_gameport_driver
This patch converts the drivers in drivers/input/* to use
module_gameport_driver() macro which makes the code smaller
and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick/a3d.c')
-rw-r--r-- | drivers/input/joystick/a3d.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/joystick/a3d.c b/drivers/input/joystick/a3d.c index 1639ab2b94b7..85bc8dc07cfc 100644 --- a/drivers/input/joystick/a3d.c +++ b/drivers/input/joystick/a3d.c @@ -413,15 +413,4 @@ static struct gameport_driver a3d_drv = { .disconnect = a3d_disconnect, }; -static int __init a3d_init(void) -{ - return gameport_register_driver(&a3d_drv); -} - -static void __exit a3d_exit(void) -{ - gameport_unregister_driver(&a3d_drv); -} - -module_init(a3d_init); -module_exit(a3d_exit); +module_gameport_driver(a3d_drv); |