diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-04 02:52:27 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-04 12:25:44 -0400 |
commit | 98a84131926ebafe868c65631b69d4912922211e (patch) | |
tree | 1f14309be518ea679b8c963e689718b21355e466 /drivers/input/joystick/adi.c | |
parent | 45b2604eaaa105223ce60117b0482ca8a488f9c4 (diff) |
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/adi.c')
-rw-r--r-- | drivers/input/joystick/adi.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/input/joystick/adi.c b/drivers/input/joystick/adi.c index b992fbf91f2f..0cbfd2dfabf4 100644 --- a/drivers/input/joystick/adi.c +++ b/drivers/input/joystick/adi.c | |||
@@ -557,10 +557,6 @@ static void adi_disconnect(struct gameport *gameport) | |||
557 | kfree(port); | 557 | kfree(port); |
558 | } | 558 | } |
559 | 559 | ||
560 | /* | ||
561 | * The gameport device structure. | ||
562 | */ | ||
563 | |||
564 | static struct gameport_driver adi_drv = { | 560 | static struct gameport_driver adi_drv = { |
565 | .driver = { | 561 | .driver = { |
566 | .name = "adi", | 562 | .name = "adi", |
@@ -570,15 +566,4 @@ static struct gameport_driver adi_drv = { | |||
570 | .disconnect = adi_disconnect, | 566 | .disconnect = adi_disconnect, |
571 | }; | 567 | }; |
572 | 568 | ||
573 | static int __init adi_init(void) | 569 | module_gameport_driver(adi_drv); |
574 | { | ||
575 | return gameport_register_driver(&adi_drv); | ||
576 | } | ||
577 | |||
578 | static void __exit adi_exit(void) | ||
579 | { | ||
580 | gameport_unregister_driver(&adi_drv); | ||
581 | } | ||
582 | |||
583 | module_init(adi_init); | ||
584 | module_exit(adi_exit); | ||